From 40646b180834096bb03756c8b26e0393b1e54d49 Mon Sep 17 00:00:00 2001 From: Jacob Hummer Date: Thu, 1 Feb 2024 19:29:22 -0600 Subject: [PATCH] Add GitHub action to auto-update the v1 tag (#53) Create release.yml --- .github/workflows/release.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..b90ea79 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,25 @@ +name: Release new action version + +on: + release: + types: [released] + workflow_dispatch: + inputs: + TAG_NAME: + description: 'Tag name that the major tag will point to' + required: true + +env: + TAG_NAME: ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} + +jobs: + update_tag: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v3 + + - uses: actions/publish-action@v0.3.0 + with: + source-tag: ${{ env.TAG_NAME }}