diff --git a/.github/workflows/release-new-version.yml b/.github/workflows/release-new-version.yml new file mode 100644 index 0000000..0ace577 --- /dev/null +++ b/.github/workflows/release-new-version.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 }} +permissions: + contents: write + +jobs: + update-tag: + name: Update the major tag to include the ${{ github.event.inputs.tag-name || github.event.release.tag_name }} changes + runs-on: ${{ fromJSON(vars.SWI_GLORG_PROD_UBUNTU_2204) }} + steps: + - name: Update the ${{ env.TAG_NAME }} tag + uses: actions/publish-action@v0.3.0 + with: + source-tag: ${{ env.TAG_NAME }}