Skip to content

Commit

Permalink
ci: Add a confirmation job to the release workflow (#2796)
Browse files Browse the repository at this point in the history
This job can be required on all changes.
  • Loading branch information
olix0r authored Mar 14, 2024
1 parent 1c350d3 commit 6faa3d3
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
version: ${{ steps.meta.outputs.version }}

package:
needs: [meta]
needs: meta
if: needs.meta.outputs.changed == 'true'

strategy:
Expand Down Expand Up @@ -109,3 +109,18 @@ jobs:
name: v${{ needs.meta.outputs.version }}
files: artifacts/**/*
generate_release_notes: true

release-ok:
needs: publish
if: always()
timeout-minutes: 3
runs-on: ubuntu-latest
steps:
- name: Results
run: |
echo 'needs.publish.result: ${{ needs.publish.result }}'
- name: Verify jobs
# All jobs must succeed or be skipped.
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: exit 1

0 comments on commit 6faa3d3

Please sign in to comment.