From 81d7ba49cd4d44d73d0b66ab1987f5686890c280 Mon Sep 17 00:00:00 2001 From: Cal <35017184+CallumWalley@users.noreply.github.com> Date: Wed, 10 Apr 2024 00:35:41 +0000 Subject: [PATCH] use GITHUB_REF instead of main --- .github/workflows/fetch_includes.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/fetch_includes.yml b/.github/workflows/fetch_includes.yml index 8a6312299..fb842abed 100644 --- a/.github/workflows/fetch_includes.yml +++ b/.github/workflows/fetch_includes.yml @@ -33,7 +33,7 @@ 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 @@ -41,6 +41,6 @@ jobs: 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 }}