Skip to content

Align Bridget dependencies to 2.6.0 #3914

Align Bridget dependencies to 2.6.0

Align Bridget dependencies to 2.6.0 #3914

Workflow file for this run

name: DCR PR deployment
on:
pull_request:
types: [labeled]
paths-ignore:
- 'apps-rendering/**'
jobs:
pr_deployment:
# We only want to run the app if the PR Deployment label has been added
if: ${{ github.event.label.id == 2500798832 }}
name: Start server
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node environment
uses: ./.github/actions/setup-node-env
- run: make build
working-directory: dotcom-rendering
- name: Boot server and run ngrok
run: |
npm install -g ngrok
NODE_ENV=production DISABLE_LOGGING_AND_METRICS=true node dotcom-rendering/dist/server.js &
timeout 5h ngrok http 9000 -log=stdout | \
grep --line-buffered -o 'https://.*' | \
xargs -L1 -I{} -t \
curl -X POST -H 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.event.pull_request.head.sha }} -d "{\"state\":\"success\", \"target_url\":\"{}\", \"context\":\"PR deployment\", \"description\":\"This PR is now live until `date -d "+5 hour" "+%a %H:%M"`. Click details to access it ->\"}"