From ac9965994f8c0250c625ef65c08f0c0f7b8b6aae Mon Sep 17 00:00:00 2001 From: preciousdipe Date: Mon, 6 Oct 2025 13:49:55 +0100 Subject: [PATCH 1/3] adding automated version bump on plugin.yaml Signed-off-by: preciousdipe --- .github/workflows/release-version-bump.yml | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/release-version-bump.yml diff --git a/.github/workflows/release-version-bump.yml b/.github/workflows/release-version-bump.yml new file mode 100644 index 0000000000..4020ef756b --- /dev/null +++ b/.github/workflows/release-version-bump.yml @@ -0,0 +1,46 @@ +name: update release version in plugin.yaml +on: + release: + types: "published" + +jobs: + update-version: + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + ref: ${{ github.event.release.target_commitish }} + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Extract version from release tag + id: get_version + run: | + VERSION=${GITHUB_REF#refs/tags/} + VERSION=${VERSION#v} + echo "version=$VERSION" >> $GITHUB_OUTPUT + echo "Extracted version: $VERSION" + + - name: Update plugin.yaml version + run: | + VERSION="${{ steps.get_version.outputs.version }}" + sed -i "s/^version: \".*\"/version: \"$VERSION\"/" plugin.yaml + echo "Updated plugin.yaml with version: $VERSION" + grep "^version:" plugin.yaml + + - name: Pull changes from remote + run: git pull origin ${{ github.event.release.target_commitish }} + + - name: Commit changes + uses: stefanzweifel/git-auto-commit-action@v5 + with: + file_pattern: plugin.yaml + commit_user_name: l5io + commit_user_email: ci@layer5.io + commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> + commit_options: "--signoff" + commit_message: "chore: bump plugin version to ${{ steps.get_version.outputs.version }}" + branch: ${{ github.event.release.target_commitish }} From 01190ee76fb4a6906214336f71e1d14a80298f74 Mon Sep 17 00:00:00 2001 From: Precious Ogundipe <45766007+PreciousDipe@users.noreply.github.com> Date: Tue, 14 Oct 2025 14:39:20 +0100 Subject: [PATCH 2/3] Update release-version-bump.yml --- .github/workflows/release-version-bump.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-version-bump.yml b/.github/workflows/release-version-bump.yml index 4020ef756b..dbdfe58452 100644 --- a/.github/workflows/release-version-bump.yml +++ b/.github/workflows/release-version-bump.yml @@ -38,8 +38,8 @@ jobs: uses: stefanzweifel/git-auto-commit-action@v5 with: file_pattern: plugin.yaml - commit_user_name: l5io - commit_user_email: ci@layer5.io + commit_user_name: preciousdipe + commit_user_email: preciousdipe@gmail.com commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> commit_options: "--signoff" commit_message: "chore: bump plugin version to ${{ steps.get_version.outputs.version }}" From 3eab682ae0a38d72ef8df66b856f9d8a4e9cd50a Mon Sep 17 00:00:00 2001 From: preciousdipe Date: Wed, 22 Oct 2025 18:22:13 +0100 Subject: [PATCH 3/3] updated workflow update release version in plugin.yaml --- .github/workflows/release-version-bump.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-version-bump.yml b/.github/workflows/release-version-bump.yml index dbdfe58452..4020ef756b 100644 --- a/.github/workflows/release-version-bump.yml +++ b/.github/workflows/release-version-bump.yml @@ -38,8 +38,8 @@ jobs: uses: stefanzweifel/git-auto-commit-action@v5 with: file_pattern: plugin.yaml - commit_user_name: preciousdipe - commit_user_email: preciousdipe@gmail.com + commit_user_name: l5io + commit_user_email: ci@layer5.io commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> commit_options: "--signoff" commit_message: "chore: bump plugin version to ${{ steps.get_version.outputs.version }}"