Skip to content

Commit 60dec89

Browse files
committed
Standardise order of needs/if
1 parent 18efa67 commit 60dec89

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
@@ -42,8 +42,8 @@ jobs:
4242
EXAMPLE_DEPLOY_KEY: ${{ secrets.EXAMPLE_DEPLOY_KEY }}
4343

4444
release:
45-
if: needs.test.result == 'success' && github.ref_type == 'tag'
4645
needs: [test, docs]
46+
if: needs.test.result == 'success' && 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
@@ -58,15 +58,15 @@ jobs:
5858
uses: ./.github/workflows/_dist.yml
5959
{% if pypi %}
6060
pypi:
61-
if: needs.dist.result == 'success' && needs.test.result == 'success' && github.ref_type == 'tag'
6261
needs: [dist, test]
62+
if: needs.dist.result == 'success' && needs.test.result == 'success' && github.ref_type == 'tag'
6363
uses: ./.github/workflows/_pypi.yml
6464
permissions:
6565
id-token: write
6666
{% endif %}
6767
release:
68-
if: needs.test.result == 'success' && github.ref_type == 'tag'
6968
needs: [dist, test{% if sphinx %}, docs{% endif %}]
69+
if: needs.test.result == 'success' && github.ref_type == 'tag'
7070
uses: ./.github/workflows/_release.yml
7171
permissions:
7272
contents: write

0 commit comments

Comments
 (0)