Skip to content

Commit

Permalink
chore: updating route for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
paulushcgcj committed Nov 19, 2024
1 parent 41e3b0f commit bbf4d9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
if: "!github.event.pull_request.head.repo.fork"
outputs:
route: ${{ github.event.number }}
prefix: ${{ steps.route.outputs.route }}
runs-on: ubuntu-latest
permissions:
pull-requests: write
Expand All @@ -27,6 +28,7 @@ jobs:
echo "route=$(( ${{ github.event.number }} % 50 ))" >> $GITHUB_OUTPUT
- name: PR Greeting
id: greeting
env:
DOMAIN: apps.silver.devops.gov.bc.ca
PREFIX: ${{ github.event.repository.name }}
Expand Down Expand Up @@ -118,7 +120,7 @@ jobs:
-p AWS_COGNITO_ISSUER_URI=https://cognito-idp.${{ vars.AWS_REGION }}.amazonaws.com/${{ vars.VITE_USER_POOLS_ID }}
-p DASHBOARD_JOB_IDIR_USERS=${{ vars.DASHBOARD_JOB_IDIR_USERS }}
-p WMS_LAYERS_WHITELIST_USERS=${{ vars.WMS_LAYERS_WHITELIST_USERS }}
-p ALLOWED_ORIGINS=https://${{ github.event.repository.name }}-${{ needs.init.outputs.route }}-frontend.apps.silver.devops.gov.bc.ca
-p ALLOWED_ORIGINS=https://${{ github.event.repository.name }}-${{ needs.init.outputs.prefix }}-frontend.apps.silver.devops.gov.bc.ca
- name: frontend
file: frontend/openshift.deploy.yml
parameters:
Expand Down

0 comments on commit bbf4d9a

Please sign in to comment.