Skip to content

Commit

Permalink
use GITHUB_REF instead of main
Browse files Browse the repository at this point in the history
  • Loading branch information
CallumWalley committed Apr 10, 2024
1 parent 3756708 commit 81d7ba4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/fetch_includes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ jobs:
- name: Commit to Branch '${BRANCH_NAME}'
id: commit
run: |
git pull origin main
git pull origin ${GITHUB_REF}
git add --all
git commit -m "update remote assets"
echo "no-change=$?" >> $GITHUB_OUTPUT
- name: Push, and make PR
if: ${{ ! steps.commit.outputs.no-change }}
run: |
git push origin ${BRANCH_NAME}
gh pr create -B main -H ${BRANCH_NAME} --title 'Update Remote Assets' --body 'Created by Github action'
gh pr create -B ${GITHUB_REF} -H ${BRANCH_NAME} --title 'Update Remote Assets' --body 'Created by Github action'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 81d7ba4

Please sign in to comment.