From 8458147993a175f542a02f8312d79a65666e1e5e Mon Sep 17 00:00:00 2001 From: Olivier ORAND Date: Wed, 27 Dec 2023 16:29:04 +0000 Subject: [PATCH] chore(github-action): commit on appropriate branch We commit to the branch that triggered the change, not always to master. --- .github/workflows/on-commits.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/on-commits.yml b/.github/workflows/on-commits.yml index efcea8ed..df0c776d 100644 --- a/.github/workflows/on-commits.yml +++ b/.github/workflows/on-commits.yml @@ -75,7 +75,7 @@ jobs: git status if git commit -a --dry-run 2>&1 >/dev/null;then git commit -a -m "updating blobs" && \ - git push ${remote_repo} HEAD:master + git push ${remote_repo} HEAD:${GITHUB_REF_NAME} else echo "Nothing to commit" fi @@ -92,6 +92,8 @@ jobs: - name: create bosh dev release id: create-bosh-release uses: orange-cloudfoundry/bosh-release-action@v2 # will create dev release when pushed git ref is not a tag + with: + target_branch: ${{github.ref_name}} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} AWS_BOSH_ACCES_KEY_ID: ${{ secrets.AWS_BOSH_ACCES_KEY_ID }}