Skip to content

Commit

Permalink
Use any repo name (#634)
Browse files Browse the repository at this point in the history
Prevents GitHub build errors due to your iAPS fork repo name. Allows you to choose any repo name for your iAPS fork when building with GitHub.
  • Loading branch information
Jon-b-m authored May 2, 2024
1 parent 180c05a commit 70df545
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_iAPS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if [[ "$(gh api -H "Accept: application/vnd.github+json" /repos/${{ github.repository_owner }}/iAPS/branches | jq --raw-output 'any(.name=="alive")')" == "true" ]]; then
if [[ "$(gh api -H "Accept: application/vnd.github+json" /repos/${{ github.repository_owner }}/${{ github.event.repository.name }}/branches | jq --raw-output 'any(.name=="alive")')" == "true" ]]; then
echo "Branch 'alive' exists."
echo "ALIVE_BRANCH_EXISTS=true" >> $GITHUB_ENV # Set ALIVE_BRANCH_EXISTS to true
else
Expand All @@ -80,7 +80,7 @@ jobs:
--method POST \
-H "Authorization: token $GITHUB_TOKEN" \
-H "Accept: application/vnd.github.v3+json" \
/repos/${{ github.repository_owner }}/iAPS/git/refs \
/repos/${{ github.repository_owner }}/${{ github.event.repository.name }}/git/refs \
-f ref='refs/heads/alive' \
-f sha=$SHA
Expand Down

0 comments on commit 70df545

Please sign in to comment.