From 0c3bac0fe0f29770f3281aae732129726cd5f9c7 Mon Sep 17 00:00:00 2001 From: rjshrjndrn Date: Wed, 23 Apr 2025 19:31:35 +0200 Subject: [PATCH] chore(ci): Update actions Signed-off-by: rjshrjndrn --- .github/workflows/patch-build.yaml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/patch-build.yaml b/.github/workflows/patch-build.yaml index f35c738bc..0e151c51f 100644 --- a/.github/workflows/patch-build.yaml +++ b/.github/workflows/patch-build.yaml @@ -146,9 +146,18 @@ jobs: destination_branch: "main" pr_title: "Updated patch build from main ${{ env.HEAD_COMMIT_ID }}" pr_body: | - This PR updates the Helm chart version after building the patch from $HEAD_COMMIT_ID. - Once this PR is merged, To update the latest tag, run the following workflow. - https://github.com/openreplay/openreplay/actions/workflows/update-tag.yaml + This PR updates the Helm chart version after building the patch from ${{ env.HEAD_COMMIT_ID }}. + + - name: Set Remote with GITHUB_TOKEN + run: | + git config --unset http.https://github.com/.extraheader + git remote set-url origin https://x-access-token:${{ secrets.ACTIONS_COMMMIT_TOKEN }}@github.com/${{ github.repository }}.git + - name: Push ${{ secrets.ACTIONS_COMMMIT_TOKEN }} branch to tag + run: | + git fetch --tags + git checkout main + echo git push origin $BRANCH_NAME:refs/tags/$(git tag --list 'v[0-9]*' --sort=-v:refname | head -n 1) --force + git push origin $BRANCH_NAME:refs/tags/$(git tag --list 'v[0-9]*' --sort=-v:refname | head -n 1) --force # - name: Debug Job # if: ${{ failure() }}