From 526b21c1d655048c6cf2542434ad88d57882c403 Mon Sep 17 00:00:00 2001 From: heavynimbus Date: Fri, 12 Jul 2024 17:11:50 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20Hotfix=20deployment=205?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/upgrade-version.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/upgrade-version.yml b/.github/workflows/upgrade-version.yml index 0aca47a..5165516 100644 --- a/.github/workflows/upgrade-version.yml +++ b/.github/workflows/upgrade-version.yml @@ -2,7 +2,8 @@ name: Upgrade Version and Deploy on: pull_request: - types: [ closed ] + types: + - closed branches: - 'main' @@ -10,6 +11,8 @@ jobs: upgrade-version: runs-on: ubuntu-latest + if: ${{ github.event.pull_request.merged == true }} + permissions: contents: write @@ -73,6 +76,8 @@ jobs: run: git tag ${{ steps.versions.outputs.next_version }} HEAD - name: Git Push changes and tags + with: + token: ${{ secrets.GITHUB_TOKEN }} run: git push --force origin HEAD:${{ github.ref_name }} --tags - name: Build Docker image ${{ steps.versions.outputs.next_version }} @@ -99,4 +104,6 @@ jobs: run: git commit -m "⬆️ Upgrade version to ${{ steps.versions.outputs.new_snapshot }}" - name: Git Push changes + with: + token: ${{ secrets.GITHUB_TOKEN }} run: git push --force origin HEAD:${{ github.ref_name }}