Skip to content

Commit 3ef5321

Browse files
ci: Simplify
1 parent b4b3441 commit 3ef5321

File tree

2 files changed

+4
-30
lines changed

2 files changed

+4
-30
lines changed

.github/workflows/pre-release.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,8 @@ jobs:
1010
name: Call QA
1111
uses: ./.github/workflows/test.yml
1212

13-
qa-successful-main:
14-
needs: qa-main
15-
name: Evaluate QA results
16-
if: ( success() || failure() )
17-
runs-on: ubuntu-22.04
18-
steps:
19-
- name: Success
20-
if: ${{ !(contains(needs.*.result, 'failure')) }}
21-
run: exit 0
22-
- name: Failure
23-
if: ${{ contains(needs.*.result, 'failure') }}
24-
run: exit 1
25-
2613
pre-relase:
27-
needs: qa-successful-main
14+
needs: qa-main
2815
name: Publish
2916
if: github.ref == 'refs/heads/main'
3017
runs-on: ubuntu-22.04
@@ -81,6 +68,6 @@ jobs:
8168

8269
docs-deploy:
8370
name: Call Deployment
84-
needs: qa-successful-main
71+
needs: qa-main
8572
if: github.ref == 'refs/heads/main'
8673
uses: ./.github/workflows/docs-deploy.yml

.github/workflows/release.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,8 @@ jobs:
1010
name: Call QA
1111
uses: ./.github/workflows/test.yml
1212

13-
qa-successful-tag:
14-
needs: qa-tag
15-
name: Evaluate QA results
16-
if: ( success() || failure() )
17-
runs-on: ubuntu-22.04
18-
steps:
19-
- name: Success
20-
if: ${{ !(contains(needs.*.result, 'failure')) }}
21-
run: exit 0
22-
- name: Failure
23-
if: ${{ contains(needs.*.result, 'failure') }}
24-
run: exit 1
25-
2613
release:
27-
needs: qa-successful-tag
14+
needs: qa-tag
2815
name: Publish action
2916
runs-on: ubuntu-22.04
3017
concurrency: lib-publish
@@ -75,6 +62,6 @@ jobs:
7562

7663
docs-deploy:
7764
name: Call Deployment
78-
needs: qa-successful-tag
65+
needs: qa-tag
7966
if: github.ref == 'refs/heads/main'
8067
uses: ./.github/workflows/docs-deploy.yml

0 commit comments

Comments
 (0)