Skip to content

Commit 964cb75

Browse files
Chore: Refactor job dependencies (#247)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 33f8b4d commit 964cb75

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

.github/workflows/tag-push.yaml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353
# yamllint disable-line rule:line-length
5454
uses: os-climate/osc-github-devops/.github/workflows/reuse-python-tests.yaml@24097e8d73176a7eeb512dd1654726edbb3fc5f6 # 2024-01-20
5555
needs:
56+
- repository
5657
- python-build
5758
# Matrix job
5859
strategy:
@@ -68,6 +69,7 @@ jobs:
6869
# yamllint disable-line rule:line-length
6970
uses: os-climate/osc-github-devops/.github/workflows/reuse-python-audit.yaml@24097e8d73176a7eeb512dd1654726edbb3fc5f6 # 2024-01-20
7071
needs:
72+
- repository
7173
- python-build
7274
# Matrix job
7375
strategy:
@@ -79,7 +81,7 @@ jobs:
7981
contents: read
8082

8183
notebooks:
82-
name: "Jupyter notebooks"
84+
name: "Notebooks"
8385
if: needs.repository.outputs.jupyter_notebooks == 'true'
8486
# yamllint disable-line rule:line-length
8587
uses: os-climate/osc-github-devops/.github/workflows/reuse-notebook-tests.yaml@24097e8d73176a7eeb512dd1654726edbb3fc5f6 # 2024-01-20
@@ -107,7 +109,6 @@ jobs:
107109
contents: read
108110
# Needed for trusted publishing; must also be passed from parent workflows
109111
id-token: write
110-
packages: write
111112
env:
112113
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
113114
steps:
@@ -124,14 +125,11 @@ jobs:
124125
pypi_credential: ${{ secrets.PYPI_PRODUCTION }}
125126

126127
github-release:
127-
name: "Release to GitHub"
128+
name: "Release: GitHub"
128129
# yamllint disable-line rule:line-length
129130
if: startsWith(github.ref, 'refs/tags/') || contains(github.event.head_commit.message, '[release]')
130131
needs:
131132
- repository
132-
- python-build
133-
- python-test
134-
- python-audit
135133
- pypi-test
136134
runs-on: "ubuntu-24.04"
137135
permissions:
@@ -167,20 +165,16 @@ jobs:
167165
github_token: ${{ secrets.GITHUB_TOKEN }}
168166

169167
pypi-release:
170-
name: "Release to PyPI"
168+
name: "Release: PyPI"
171169
if: startsWith(github.ref, 'refs/tags/') || contains(github.event.head_commit.message, '[release]')
172170
needs:
173171
- repository
174-
- python-build
175-
- python-test
176-
- python-audit
177172
- pypi-test
178173
runs-on: "ubuntu-24.04"
179174
permissions:
180175
contents: read
181176
# Needed for trusted publishing; must also be passed from parent workflows
182177
id-token: write
183-
packages: write
184178
env:
185179
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
186180
steps:

0 commit comments

Comments
 (0)