diff --git a/.github/workflows/build_loop.yml b/.github/workflows/build_loop.yml index 96bb544df6..2a828fe6b0 100644 --- a/.github/workflows/build_loop.yml +++ b/.github/workflows/build_loop.yml @@ -61,7 +61,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GH_PAT }} run: | - if [[ $(gh api -H "Accept: application/vnd.github+json" /repos/${{ github.repository_owner }}/LoopWorkspace/branches | jq --raw-output '[.[] | select(.name == "alive-main" or .name == "alive-dev")] | length > 0') == "true" ]]; then + if [[ $(gh api -H "Accept: application/vnd.github+json" /repos/${{ github.repository }}/branches | jq --raw-output '[.[] | select(.name == "alive-main" or .name == "alive-dev")] | length > 0') == "true" ]]; then echo "Branches 'alive-main' or 'alive-dev' exist." echo "ALIVE_BRANCH_EXISTS=true" >> $GITHUB_ENV else @@ -85,7 +85,7 @@ jobs: --method POST \ -H "Authorization: token $GITHUB_TOKEN" \ -H "Accept: application/vnd.github.v3+json" \ - /repos/${{ github.repository_owner }}/LoopWorkspace/git/refs \ + /repos/${{ github.repository }}/git/refs \ -f ref='refs/heads/alive-main' \ -f sha=$SHA_MAIN @@ -94,7 +94,7 @@ jobs: --method POST \ -H "Authorization: token $GITHUB_TOKEN" \ -H "Accept: application/vnd.github.v3+json" \ - /repos/${{ github.repository_owner }}/LoopWorkspace/git/refs \ + /repos/${{ github.repository }}/git/refs \ -f ref='refs/heads/alive-dev' \ -f sha=$SHA_DEV @@ -333,4 +333,4 @@ jobs: name: build-artifacts path: | artifacts - buildlog \ No newline at end of file + buildlog