From ea2e858d0e3079aeec8df4bfaec76e1bde76841d Mon Sep 17 00:00:00 2001 From: Mogyuchi Date: Fri, 19 Jan 2024 01:48:23 +0900 Subject: [PATCH] ci: add move-tags job (#13) Signed-off-by: Mogyuchi --- .github/workflows/release-please.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 1e8fc9f..e7ffbe3 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -13,6 +13,7 @@ jobs: runs-on: ubuntu-latest outputs: release_created: ${{ steps.release-please.outputs.release_created }} + tag_name: ${{ steps.release-please.outputs.tag_name }} steps: - uses: google-github-actions/release-please-action@cc61a07e2da466bebbc19b3a7dd01d6aecb20d1e # v4.0.2 id: release-please @@ -22,3 +23,20 @@ jobs: skip-github-pull-request: ${{ startsWith(github.event.head_commit.message, 'release:') && github.event.head_commit.author.name == 'github-actions[bot]' }} + + move-tags: + needs: [release-please] + if: ${{ needs.release-please.outputs.release_created }} + permissions: + contents: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + with: + sparse-checkout: '' + sparse-checkout-cone-mode: false + fetch-tags: true + - uses: fischerscode/tagger@5ca3fa63ce3003fb7183cae547644b29f3b632be # v0.2.0 + with: + prefix: v + tag: ${{ needs.release-please.outputs.tag_name }}