Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
chore(github-action): commit on appropriate branch
Browse files Browse the repository at this point in the history
We commit to the branch that triggered the change, not always to master.
  • Loading branch information
o-orand committed Dec 27, 2023
1 parent 063127f commit 8458147
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/on-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down

0 comments on commit 8458147

Please sign in to comment.