diff --git a/.github/workflows/auto-tag.yml b/.github/workflows/auto-tag.yml index da42482..a5b30b1 100644 --- a/.github/workflows/auto-tag.yml +++ b/.github/workflows/auto-tag.yml @@ -11,6 +11,7 @@ jobs: runs-on: ubuntu-latest permissions: contents: write + actions: write steps: - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 with: @@ -54,3 +55,11 @@ jobs: git config user.email "github-actions[bot]@users.noreply.github.com" git tag -a "v${{ steps.version.outputs.version }}" -m "Release v${{ steps.version.outputs.version }}" git push origin "v${{ steps.version.outputs.version }}" + + - name: Dispatch release workflow + if: steps.version.outputs.changed == 'true' && steps.tag-check.outputs.exists == 'false' + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + set -euo pipefail + gh workflow run release.yml --ref "v${{ steps.version.outputs.version }}" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 16aa607..6b363c5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,7 @@ permissions: contents: write on: + workflow_dispatch: push: tags: - "v*.*.*"