Skip to content

Commit 15d18f7

Browse files
committed
Fix action names
1 parent 24417e8 commit 15d18f7

File tree

2 files changed

+7
-42
lines changed

2 files changed

+7
-42
lines changed

.github/workflows/test-and-build-from-fork.yaml

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ permissions:
77
contents: read
88

99
jobs:
10-
build-and-package:
11-
name: Check, Build and Package
10+
test-and-build:
11+
name: Test and Build
1212
runs-on: ubuntu-latest
1313
if: github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.head.repo.full_name != github.repository
1414

@@ -40,7 +40,7 @@ jobs:
4040

4141
test:
4242
name: Test
43-
needs: build-and-package
43+
needs: test-and-build
4444
if: github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.head.repo.full_name != github.repository
4545

4646
strategy:
@@ -78,21 +78,3 @@ jobs:
7878
PR_URL: ${{github.event.pull_request.html_url}}
7979
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
8080

81-
status-check:
82-
name: Test and Build
83-
runs-on: ubuntu-latest
84-
needs: [build-and-package, test]
85-
if: always()
86-
steps:
87-
- name: Check job results
88-
run: |
89-
if [ "${{ needs.build-and-package.result }}" == "failure" ] || [ "${{ needs.test.result }}" == "failure" ]; then
90-
echo "One or more jobs failed"
91-
exit 1
92-
elif [ "${{ needs.build-and-package.result }}" == "cancelled" ] || [ "${{ needs.test.result }}" == "cancelled" ]; then
93-
echo "One or more jobs were cancelled"
94-
exit 1
95-
else
96-
echo "All jobs completed successfully or were skipped"
97-
exit 0
98-
fi

.github/workflows/test-and-build.yaml

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ permissions:
1414
contents: read
1515

1616
jobs:
17-
build-and-package:
18-
name: Check, Build and Package
17+
test-and-build:
18+
name: Test and Build
1919
runs-on: ubuntu-latest
2020
if: github.event.pull_request.user.login != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository
2121

@@ -45,7 +45,7 @@ jobs:
4545

4646
test:
4747
name: Test
48-
needs: build-and-package
48+
needs: test-and-build
4949
if: github.event.pull_request.user.login != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository
5050

5151
strategy:
@@ -79,21 +79,4 @@ jobs:
7979
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
8080
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
8181

82-
status-check:
83-
name: Test and Build
84-
runs-on: ubuntu-latest
85-
needs: [build-and-package, test]
86-
if: always()
87-
steps:
88-
- name: Check job results
89-
run: |
90-
if [ "${{ needs.build-and-package.result }}" == "failure" ] || [ "${{ needs.test.result }}" == "failure" ]; then
91-
echo "One or more jobs failed"
92-
exit 1
93-
elif [ "${{ needs.build-and-package.result }}" == "cancelled" ] || [ "${{ needs.test.result }}" == "cancelled" ]; then
94-
echo "One or more jobs were cancelled"
95-
exit 1
96-
else
97-
echo "All jobs completed successfully or were skipped"
98-
exit 0
99-
fi
82+

0 commit comments

Comments
 (0)