Skip to content

Commit 4562240

Browse files
andykenwardCopilot
andcommitted
ci: number test
Co-authored-by: Copilot <copilot@github.com>
1 parent 947c9c2 commit 4562240

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ concurrency:
1313

1414
jobs:
1515
deploy:
16-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
16+
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch != 'main' }}
1717
permissions:
1818
actions: read
1919
contents: read
@@ -29,6 +29,12 @@ jobs:
2929
ref: ${{ github.event.workflow_run.head_sha }}
3030
- if: github.event_name != 'workflow_run'
3131
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
32+
- name: Get PR number
33+
run: |
34+
echo "PR Number: ${{ github.event.number }}"
35+
- name: Get PR number other
36+
run: |
37+
echo "PR Number: ${{ github.event.pull_request.number }}"
3238
- id: 'cloudflare-pages'
3339
uses: ./
3440
with:

0 commit comments

Comments
 (0)