Skip to content

Commit

Permalink
ci: Try to make the release workflow run after tagging a new release.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaqx0r committed Oct 16, 2024
1 parent 177cdb4 commit 5f4ffda
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ on:
# goreleaser is put into snapshot mode when not on a tag
pull_request:
merge_group:
push:
push: # testing, unless there's a tag (steps.0.if below)
workflow_run:
workflows: ["tag new release"]
types:
- completed


env:
REGISTRY: ghcr.io
Expand All @@ -22,6 +27,8 @@ jobs:
outputs:
binary_hashes: ${{ steps.binary.outputs.hashes }}
image_subjects: ${{ steps.image.outputs.subjects }}
# https://github.com/orgs/community/discussions/26238
if: ${{ !github.event.workflow_run || github.event.workflow_run.conclusion == 'success' }}
steps:
- if: ${{ !startsWith(github.ref, 'refs/tags/') }}
run: echo "flags=--snapshot" >> $GITHUB_ENV
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/tag-new-release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: tag new release

on:
push: # for testing
pull_request: # for testing
workflow_dispatch:
workflow_dispatch: # manual invocation
schedule:
- cron: "30 5 * * 0"

Expand Down

0 comments on commit 5f4ffda

Please sign in to comment.