Skip to content

Commit

Permalink
Update build_loop.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornoleh authored Mar 25, 2024
1 parent 36e5da8 commit 57e2547
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build_loop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,16 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
run: |
SHA=$(curl --request GET \
--url "https://api.github.com/repos/${{ env.UPSTREAM_REPO }}/git/refs/heads/dev" \
--header "Authorization: Bearer $GH_TOKEN" \
--silent | jq -r '.object.sha')
response=$(curl --request GET \
--url "https://api.github.com/repos/${{ env.UPSTREAM_REPO }}/git/refs/heads/dev" \
--header "Authorization: Bearer $GH_TOKEN" \
--silent)
echo "API Response: $response"
SHA=$(echo "$response" | jq -r '.object.sha')
if [ "$SHA" = "null" ]; then
echo "Error: Unable to retrieve SHA for the dev branch."
exit 1
fi
echo "SHA of dev branch: $SHA";
# Create alive branch based on LoopKit/LoopWorkspace:dev
Expand Down

0 comments on commit 57e2547

Please sign in to comment.