Skip to content

Commit aac4043

Browse files
committed
Remove uneccesary needs.*.result from conditionals
1 parent acb8f6d commit aac4043

File tree

2 files changed

+3
-3
lines changed
  • .github/workflows
  • template/{% if git_platform=="github.com" %}.github{% endif %}/workflows

2 files changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343

4444
release:
4545
needs: [test, docs]
46-
if: needs.test.result == 'success' && github.ref_type == 'tag'
46+
if: github.ref_type == 'tag'
4747
uses: ./.github/workflows/_release.yml
4848
permissions:
4949
contents: write

template/{% if git_platform=="github.com" %}.github{% endif %}/workflows/ci.yml.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ jobs:
5959
{% if pypi %}
6060
pypi:
6161
needs: [dist, test]
62-
if: needs.dist.result == 'success' && needs.test.result == 'success' && github.ref_type == 'tag'
62+
if: github.ref_type == 'tag'
6363
uses: ./.github/workflows/_pypi.yml
6464
permissions:
6565
id-token: write
6666
{% endif %}
6767
release:
6868
needs: [dist, test{% if sphinx %}, docs{% endif %}]
69-
if: needs.dist.result == 'success' && needs.test.result == 'success' && github.ref_type == 'tag'
69+
if: github.ref_type == 'tag'
7070
uses: ./.github/workflows/_release.yml
7171
permissions:
7272
contents: write

0 commit comments

Comments
 (0)