Skip to content

Commit

Permalink
update alive to dev (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikePlante1 authored May 13, 2024
1 parent 6c5e10d commit 3a184ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build_trio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,20 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
run: |
# get ref for nightscout/Trio:main
# get ref for nightscout/Trio:dev
response=$(curl --request GET \
--url "https://api.github.com/repos/${{ env.UPSTREAM_REPO }}/git/refs/heads/dev" \
--header "Authorization: Bearer $GITHUB_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 main branch."
echo "Error: Unable to retrieve SHA for the dev branch."
exit 1
fi
echo "SHA of main branch: $SHA";
echo "SHA of dev branch: $SHA";
# Create alive branch based on nightscout/Trio:main
# Create alive branch based on nightscout/Trio:dev
gh api \
--method POST \
-H "Authorization: token $GITHUB_TOKEN" \
Expand Down

0 comments on commit 3a184ed

Please sign in to comment.