From b002da2928bb79ffee216a2fe208c19200eb0b76 Mon Sep 17 00:00:00 2001 From: Sean Goedecke Date: Mon, 21 Jul 2025 09:41:47 +1000 Subject: [PATCH 1/3] Add GitHub Actions workflow for releasing new version --- .../workflows/release-new-action-version.yml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/release-new-action-version.yml diff --git a/.github/workflows/release-new-action-version.yml b/.github/workflows/release-new-action-version.yml new file mode 100644 index 0000000..22c0859 --- /dev/null +++ b/.github/workflows/release-new-action-version.yml @@ -0,0 +1,27 @@ +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 + environment: + name: releaseNewActionVersion + runs-on: ubuntu-latest + steps: + - name: Update the ${{ env.TAG_NAME }} tag + uses: actions/publish-action@v0.2.2 + with: + source-tag: ${{ env.TAG_NAME }} From 6f7bd88d1deb5f6a7e7e9d74dc7559912a3d3f9b Mon Sep 17 00:00:00 2001 From: Sean Goedecke Date: Mon, 21 Jul 2025 03:49:57 +0000 Subject: [PATCH 2/3] lint --- .github/workflows/release-new-action-version.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-new-action-version.yml b/.github/workflows/release-new-action-version.yml index 22c0859..340824e 100644 --- a/.github/workflows/release-new-action-version.yml +++ b/.github/workflows/release-new-action-version.yml @@ -16,7 +16,9 @@ permissions: jobs: update_tag: - name: Update the major tag to include the ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} changes + name: + Update the major tag to include the ${{ github.event.inputs.TAG_NAME || + github.event.release.tag_name }} changes environment: name: releaseNewActionVersion runs-on: ubuntu-latest From fcc85501151b01d8c966ab9939efb17bef6dce19 Mon Sep 17 00:00:00 2001 From: Sean Goedecke Date: Mon, 21 Jul 2025 04:01:22 +0000 Subject: [PATCH 3/3] lint --- .github/workflows/release-new-action-version.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release-new-action-version.yml b/.github/workflows/release-new-action-version.yml index 340824e..13d68db 100644 --- a/.github/workflows/release-new-action-version.yml +++ b/.github/workflows/release-new-action-version.yml @@ -3,24 +3,17 @@ 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 }} + 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 - environment: - name: releaseNewActionVersion + Update the major tag to include the ${{ github.event.release.tag_name }} + changes runs-on: ubuntu-latest steps: - name: Update the ${{ env.TAG_NAME }} tag