From 6c5e10d31fe40b25190200d57d090192b3012e71 Mon Sep 17 00:00:00 2001 From: Mike Plante <82073483+MikePlante1@users.noreply.github.com> Date: Mon, 13 May 2024 14:38:51 -0400 Subject: [PATCH 1/2] update alive to dev --- .github/workflows/build_trio.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_trio.yml b/.github/workflows/build_trio.yml index 951f1e339..416c98e82 100644 --- a/.github/workflows/build_trio.yml +++ b/.github/workflows/build_trio.yml @@ -71,7 +71,7 @@ jobs: run: | # get ref for nightscout/Trio:main 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" \ --silent) echo "API Response: $response" From 3a184ed414df5e97a6fe8dbc9ce2463cf51e2292 Mon Sep 17 00:00:00 2001 From: Mike Plante <82073483+MikePlante1@users.noreply.github.com> Date: Mon, 13 May 2024 14:42:00 -0400 Subject: [PATCH 2/2] update alive to dev (2) --- .github/workflows/build_trio.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_trio.yml b/.github/workflows/build_trio.yml index 416c98e82..4e7ff3814 100644 --- a/.github/workflows/build_trio.yml +++ b/.github/workflows/build_trio.yml @@ -69,7 +69,7 @@ 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" \ @@ -77,12 +77,12 @@ jobs: 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" \