Skip to content

Commit

Permalink
Trigger release workflow on dependabot tag (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelattwood authored Apr 9, 2024
1 parent de7ab25 commit 146f9be
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/deps-release-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- main

permissions:
actions: write
contents: write

jobs:
Expand Down Expand Up @@ -55,3 +56,9 @@ jobs:
git tag "${{ steps.tag.outputs.new-ref-name }}"
git push origin "${{ steps.tag.outputs.new-ref-name }}"
fi
- if: ${{ fromJSON(steps.tag.outputs.create) }}
name: Trigger Release
run: gh workflow run release.yaml --ref "${{ steps.tag.outputs.new-ref-name }}"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Release
on:
workflow_dispatch:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
Expand Down

0 comments on commit 146f9be

Please sign in to comment.