summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/apex-deploy.yml9
1 files changed, 8 insertions, 1 deletions
diff --git a/.github/workflows/apex-deploy.yml b/.github/workflows/apex-deploy.yml
index 1528221b..6459ac7a 100644
--- a/.github/workflows/apex-deploy.yml
+++ b/.github/workflows/apex-deploy.yml
@@ -4,10 +4,15 @@ on:
push:
branches: [rolling]
paths: ["workers/**"]
+ pull_request:
+ paths: ["workers/**"]
workflow_dispatch: {}
concurrency:
- group: apex-deploy-${{ github.ref_name }}
+ # PR runs group per PR number (not head ref — same-named branches from
+ # different forks would otherwise share a group) so pushes to the same PR
+ # queue/cancel independently of the rolling deploy group.
+ group: apex-deploy-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.ref_name }}
# false (not true): a mid-job cancel can leave the apex/preview worker pair
# half-updated; queuing subsequent runs is safe.
cancel-in-progress: false
@@ -26,6 +31,7 @@ jobs:
deploy-canary:
needs: test
+ if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@@ -58,6 +64,7 @@ jobs:
deploy-production:
needs: deploy-canary
+ if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
environment: docs-production # requires reviewer approval (§7.2)
steps: