From e54d64c36bf7401024181c58ae48473842d0c013 Mon Sep 17 00:00:00 2001 From: eeisegn Date: Tue, 10 Mar 2026 12:02:12 +0000 Subject: [PATCH 1/2] add version bump workflow. --- .github/workflows/version-bump.yml | 49 ++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/version-bump.yml diff --git a/.github/workflows/version-bump.yml b/.github/workflows/version-bump.yml new file mode 100644 index 00000000..37dd56d3 --- /dev/null +++ b/.github/workflows/version-bump.yml @@ -0,0 +1,49 @@ +name: Version Bump +# Create the next available tag (based on commit comment) + +on: + workflow_dispatch: + inputs: + run_for_real: + required: true + default: false + type: boolean + description: "Apply next tag (or Dry Run)" + default_bump: + required: true + default: "minor" + type: choice + options: ['major', 'minor', 'patch', 'none'] + description: "Default Version Bump" + +concurrency: production + +jobs: + Tagging: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + env: + GITHUB_TOKEN: ${{ secrets.SC_GH_TAG_TOKEN }} + with: + fetch-depth: '0' + - name: Determine Tag Details + id: taggerDryRun + uses: anothrNick/github-tag-action@v1 + env: + GITHUB_TOKEN: ${{ secrets.SC_GH_TAG_TOKEN }} + DEFAULT_BUMP: ${{ inputs.default_bump }} + WITH_V: true + DRY_RUN: true + - name: Tag Details + run: | + echo "The next tag version will be: ${{ steps.taggerDryRun.outputs.new_tag }}" + echo "The version increment was: ${{ steps.taggerDryRun.outputs.part }}" + - name: Run Tagging + if: ${{ inputs.run_for_real }} + id: taggerApply + uses: anothrNick/github-tag-action@v1 + env: + GITHUB_TOKEN: ${{ secrets.SC_GH_TAG_TOKEN }} + DEFAULT_BUMP: ${{ inputs.default_bump }} + WITH_V: true \ No newline at end of file From f658731db5fde24aeb737db4beacae76ef8fd498 Mon Sep 17 00:00:00 2001 From: eeisegn Date: Tue, 10 Mar 2026 12:27:16 +0000 Subject: [PATCH 2/2] switch to token for checkout --- .github/workflows/version-bump.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/version-bump.yml b/.github/workflows/version-bump.yml index 37dd56d3..381ae953 100644 --- a/.github/workflows/version-bump.yml +++ b/.github/workflows/version-bump.yml @@ -23,9 +23,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - env: - GITHUB_TOKEN: ${{ secrets.SC_GH_TAG_TOKEN }} with: + token: ${{ secrets.SC_GH_TAG_TOKEN }} fetch-depth: '0' - name: Determine Tag Details id: taggerDryRun