Skip to content

Commit

Permalink
getting ref/branch
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-jameson committed Dec 19, 2024
1 parent 9d0acc5 commit 9ad1f7e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/deploy-on-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
# 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/[email protected]
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: |
Expand Down
12 changes: 11 additions & 1 deletion scripts/deploy-frontend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ../..
Expand Down

0 comments on commit 9ad1f7e

Please sign in to comment.