From 9ad1f7e470b9bb729f7106e4f1b5392e562107df Mon Sep 17 00:00:00 2001 From: andrew-jameson Date: Thu, 19 Dec 2024 12:20:41 -0500 Subject: [PATCH] getting ref/branch --- .github/workflows/deploy-on-label.yml | 20 ++++++++++---------- scripts/deploy-frontend.sh | 12 +++++++++++- 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/.github/workflows/deploy-on-label.yml b/.github/workflows/deploy-on-label.yml index 02c0f0851..c90907ce8 100644 --- a/.github/workflows/deploy-on-label.yml +++ b/.github/workflows/deploy-on-label.yml @@ -42,16 +42,16 @@ jobs: DEPLOY_ENV="${ADDR[1]}" echo "::set-output name=DEPLOY_ENV::$DEPLOY_ENV" IFS=' ' - #- name: Get PR Status Checks - # id: get-pr-checks - # uses: octokit/request-action@v2.x - # with: - # route: GET /repos/{owner}/{repo}/commits/{ref}/status - # owner: ${{ github.repository_owner }} - # repo: TANF-app - # ref: ${{ github.event.pull_request.head.ref }} - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Get PR Status Checks + id: get-pr-checks + uses: octokit/request-action@v2.x + with: + route: GET /repos/{owner}/{repo}/commits/{ref}/status + owner: ${{ github.repository_owner }} + repo: TANF-app + ref: ${{ github.event.pull_request.head.ref }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} #- name: Extract current PR state # id: get-pr-state # run: | diff --git a/scripts/deploy-frontend.sh b/scripts/deploy-frontend.sh index 9bf7249d2..065fd6225 100755 --- a/scripts/deploy-frontend.sh +++ b/scripts/deploy-frontend.sh @@ -75,16 +75,26 @@ update_frontend() # Do a zero downtime deploy. This requires enough memory for # two apps to exist in the org/space at one time. #cf push "$CGHOSTNAME_FRONTEND" --no-route -f manifest.buildpack.yml --strategy rolling || exit 1 + echo '' + else - #cf push "$CGHOSTNAME_FRONTEND" --no-route -f manifest.buildpack.yml + #cf push "$CGHOSTNAME_FRONTEND" --no-route -f manifest.buildpack.yml + echo '' + fi if [ "$CF_SPACE" = "tanf-prod" ]; then #cf map-route "$CGHOSTNAME_FRONTEND" tanfdata.acf.hhs.gov + echo '' + elif [ "$CF_SPACE" = "tanf-staging" ]; then #cf map-route "$CGHOSTNAME_FRONTEND" "$CGHOSTNAME_FRONTEND".acf.hhs.gov + echo '' + else #cf map-route "$CGHOSTNAME_FRONTEND" app.cloud.gov --hostname "${CGHOSTNAME_FRONTEND}" + echo '' + fi cd ../..