Skip to content

Commit 1d1c1b2

Browse files
committed
temp: don't publish if kit building failed
1 parent bb68f99 commit 1d1c1b2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/publish.yml

+3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ jobs:
4040
- name: "Record run id" # zizmor: ignore[template-injection]
4141
id: run-id
4242
run: |
43+
# There must be a shorter way to write this...
44+
[ "${{ fromJson(steps.runs.outputs.data).workflow_runs[0].status}}" -eq "completed" ] || exit 1
45+
[ "${{ fromJson(steps.runs.outputs.data).workflow_runs[0].conclusion}}" -eq "success" ] || exit 1
4346
echo "run-id=${{ fromJson(steps.runs.outputs.data).workflow_runs[0].id }}" >> "$GITHUB_OUTPUT"
4447
4548
publish-to-test-pypi:

0 commit comments

Comments
 (0)