File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -69,20 +69,20 @@ jobs:
69
69
env :
70
70
GITHUB_TOKEN : ${{ secrets.GH_PAT }}
71
71
run : |
72
- # get ref for nightscout/Trio:main
72
+ # get ref for nightscout/Trio:dev
73
73
response=$(curl --request GET \
74
- --url "https://api.github.com/repos/${{ env.UPSTREAM_REPO }}/git/refs/heads/main " \
74
+ --url "https://api.github.com/repos/${{ env.UPSTREAM_REPO }}/git/refs/heads/dev " \
75
75
--header "Authorization: Bearer $GITHUB_TOKEN" \
76
76
--silent)
77
77
echo "API Response: $response"
78
78
SHA=$(echo "$response" | jq -r '.object.sha')
79
79
if [ "$SHA" = "null" ]; then
80
- echo "Error: Unable to retrieve SHA for the main branch."
80
+ echo "Error: Unable to retrieve SHA for the dev branch."
81
81
exit 1
82
82
fi
83
- echo "SHA of main branch: $SHA";
83
+ echo "SHA of dev branch: $SHA";
84
84
85
- # Create alive branch based on nightscout/Trio:main
85
+ # Create alive branch based on nightscout/Trio:dev
86
86
gh api \
87
87
--method POST \
88
88
-H "Authorization: token $GITHUB_TOKEN" \
You can’t perform that action at this time.
0 commit comments