Преглед на файлове

Merge pull request #176 from MikePlante1/alive-dev

Update alive to dev
Deniz Cengiz преди 2 години
родител
ревизия
f23b38ad8b
променени са 1 файла, в които са добавени 5 реда и са изтрити 5 реда
  1. 5 5
      .github/workflows/build_trio.yml

+ 5 - 5
.github/workflows/build_trio.yml

@@ -69,20 +69,20 @@ jobs:
       env:
       env:
         GITHUB_TOKEN: ${{ secrets.GH_PAT }}
         GITHUB_TOKEN: ${{ secrets.GH_PAT }}
       run: |
       run: |
-        # get ref for nightscout/Trio:main
+        # get ref for nightscout/Trio:dev
         response=$(curl --request GET \
         response=$(curl --request GET \
-                          --url "https://api.github.com/repos/${{ env.UPSTREAM_REPO }}/git/refs/heads/main" \
+                          --url "https://api.github.com/repos/${{ env.UPSTREAM_REPO }}/git/refs/heads/dev" \
                           --header "Authorization: Bearer $GITHUB_TOKEN" \
                           --header "Authorization: Bearer $GITHUB_TOKEN" \
                           --silent)
                           --silent)
         echo "API Response: $response"
         echo "API Response: $response"
         SHA=$(echo "$response" | jq -r '.object.sha')
         SHA=$(echo "$response" | jq -r '.object.sha')
         if [ "$SHA" = "null" ]; then
         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
             exit 1
         fi
         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 \
         gh api \
           --method POST \
           --method POST \
           -H "Authorization: token $GITHUB_TOKEN" \
           -H "Authorization: token $GITHUB_TOKEN" \