diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index b23effcc5aa..a82b286f94a 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,5 +1,3 @@ - - ## What does this change? ## Why? diff --git a/.github/workflows/ar-pr-deployment.yml b/.github/workflows/ar-pr-deployment.yml deleted file mode 100644 index 82337ca5e36..00000000000 --- a/.github/workflows/ar-pr-deployment.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: AR PR Deployment - -on: - pull_request: - types: [labeled] - paths-ignore: - - 'dotcom-rendering/**' - -jobs: - pr_deployment: - name: AR PR deployment - # We only want to run the app if the PR Deployment label has been added - if: ${{ github.event.label.id == 2500798832 }} - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - - name: Set up Node environment - uses: ./.github/actions/setup-node-env - - - name: run - working-directory: apps-rendering - run: | - npm install -g ngrok - npm run watch & - timeout 1h ngrok http 3030 -log=stdout -host-header=rewrite | \ - 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 "+1 hour" "+%a %H:%M"`. Click details to access it ->\"}" - env: - APIS_IMG_SALT: ${{ secrets.APIS_IMG_SALT }} - CAPI_KEY: ${{ secrets.CAPI_KEY }} - TZ: '/usr/share/zoneinfo/Europe/London' diff --git a/.github/workflows/pr-deployment.yml b/.github/workflows/pr-deployment.yml deleted file mode 100644 index a802812b3ce..00000000000 --- a/.github/workflows/pr-deployment.yml +++ /dev/null @@ -1,32 +0,0 @@ -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 ->\"}"