From 65a605e8df25de337f5c7844467c33332809de93 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 28 Feb 2025 07:37:35 -0600 Subject: [PATCH 1/4] chore(deps): bump the dependencies group with 2 updates (#51) --- .github/workflows/release-image.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-image.yaml b/.github/workflows/release-image.yaml index 4f597e1..4d2e1c2 100644 --- a/.github/workflows/release-image.yaml +++ b/.github/workflows/release-image.yaml @@ -40,7 +40,7 @@ jobs: steps: - uses: actions/checkout@v4.2.2 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@f7ce87c1d6bead3e36075b2ce75da1f6cc28aaca + uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 - name: Log in to the Container registry uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 with: @@ -49,7 +49,7 @@ jobs: password: ${{ env.IMAGE_REGISTRY_PASSWORD}} - name: Push Docker Image if: ${{ success() }} - uses: docker/build-push-action@0adf9959216b96bec444f325f1e493d4aa344497 + uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 id: push with: context: . From 1f9c69d988b952c704e5b1fd2ecd8d9eb68152d7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 15 Mar 2025 06:53:43 -0500 Subject: [PATCH 2/4] chore(deps): bump docker/login-action in the dependencies group (#52) --- .github/workflows/release-image.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-image.yaml b/.github/workflows/release-image.yaml index 4d2e1c2..23a139d 100644 --- a/.github/workflows/release-image.yaml +++ b/.github/workflows/release-image.yaml @@ -42,7 +42,7 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 - name: Log in to the Container registry - uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 + uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 with: registry: ${{ env.IMAGE_REGISTRY }} username: ${{ env.IMAGE_REGISTRY_USERNAME }} From 4c759cbc308794dcce8f0ed2ae3a47941cf0a6a3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 20 Mar 2025 22:09:33 -0500 Subject: [PATCH 3/4] chore(deps): bump abirismyname/create-discussion from 1.2.0 to 2.1.0 (#54) --- .github/workflows/release-discussion.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-discussion.yaml b/.github/workflows/release-discussion.yaml index b81e8c5..4a2e70a 100644 --- a/.github/workflows/release-discussion.yaml +++ b/.github/workflows/release-discussion.yaml @@ -37,7 +37,7 @@ jobs: echo "discussion-category-id secret is not set" exit 1 - name: Create an Announcement Discussion for Release - uses: abirismyname/create-discussion@6e6ef67e5eeb042343ef8b3d8d0f5d545cbdf024 + uses: abirismyname/create-discussion@c2b7c825241769dda523865ae444a879f6bbd0e0 env: GH_TOKEN: ${{ secrets.github-token }} with: From 10cfc2f9be5fce5e90150dfbffc7c0f4e68108ab Mon Sep 17 00:00:00 2001 From: Jason Meridth Date: Mon, 7 Apr 2025 18:38:34 -0500 Subject: [PATCH 4/4] feat: major version updater (#55) Updates the major version to point to the latest published tag with the same major tag Example: v2.2.0 exists v2 is currently pointed to v2.2.0 release happens v2.3.0 is created this action will point v2 at the new v2.3.0 Signed-off-by: jmeridth --- .github/workflows/major-version-updater.yaml | 33 +++++++++++++++++++ .../workflows/test-major-version-updater.yaml | 19 +++++++++++ 2 files changed, 52 insertions(+) create mode 100644 .github/workflows/major-version-updater.yaml create mode 100644 .github/workflows/test-major-version-updater.yaml diff --git a/.github/workflows/major-version-updater.yaml b/.github/workflows/major-version-updater.yaml new file mode 100644 index 0000000..a8ec77f --- /dev/null +++ b/.github/workflows/major-version-updater.yaml @@ -0,0 +1,33 @@ +--- +name: "Major Version Updater" +on: + workflow_call: + inputs: + tag_name: + required: true + type: string +permissions: + contents: read +jobs: + major_version_updater: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v4.2.2 + with: + fetch-tags: true + ref: ${{ inputs.tag_name }} + - name: version + id: version + env: + TAG_NAME: ${{ inputs.tag_name }} + run: | + tag=${TAG_NAME/refs\/tags\//} + version=${tag#v} + major=${version%%.*} + { echo "tag=${tag}"; echo "version=${version}"; echo "major=${major}"; } >> "$GITHUB_OUTPUT" + - name: force update major tag + run: | + git tag -f v${{ steps.version.outputs.major }} ${{ steps.version.outputs.tag }} + git push -f origin v${{ steps.version.outputs.major }} diff --git a/.github/workflows/test-major-version-updater.yaml b/.github/workflows/test-major-version-updater.yaml new file mode 100644 index 0000000..20e00d0 --- /dev/null +++ b/.github/workflows/test-major-version-updater.yaml @@ -0,0 +1,19 @@ +--- +name: "Test Major Version Updater" +on: + release: + types: [published] + workflow_dispatch: + inputs: + TAG_NAME: + description: "Tag name that the major tag will point to (e.g. v1.2.3)" + required: true +permissions: + contents: read +jobs: + labeler: + permissions: + contents: write + uses: ./.github/workflows/major-version-updater.yaml + with: + tag_name: ${{ github.event.inputs.TAG_NAME || github.ref}}