From 826ac26e9b7b99d402d43ce0a5534bca59bb80a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Wed, 9 Oct 2024 09:14:29 +0200 Subject: [PATCH] Push with token --- .github/workflows/core_release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/core_release.yml b/.github/workflows/core_release.yml index ca98de1..8a5cd7d 100644 --- a/.github/workflows/core_release.yml +++ b/.github/workflows/core_release.yml @@ -16,6 +16,7 @@ permissions: jobs: release: + if: github.repository == 'opf/helm-charts' name: Update the Helm chart for a core release runs-on: ubuntu-latest steps: @@ -23,6 +24,7 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 + token: ${{ secrets.OPENRPOJECTCI_GH_TOKEN }} - name: Setup Ruby uses: ruby/setup-ruby@v1 @@ -42,4 +44,6 @@ jobs: git add .changeset/*.md git add charts/openproject/Chart.yaml git commit -m "Update helm chart for core release ${{ inputs.tag }}" - git push + git push origin main + env: + GITHUB_TOKEN: ${{ secrets.OPENRPOJECTCI_GH_TOKEN }}