Skip to content

Commit fb06173

Browse files
committed
ci: strict check run only for this repo
1 parent bb423a0 commit fb06173

6 files changed

Lines changed: 6 additions & 67 deletions

File tree

.github/workflows/check-dist.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ concurrency:
2828

2929
jobs:
3030
check-dist:
31+
if: ${{ github.repository == 'andykenward/github-actions-cloudflare-pages' }}
3132
runs-on: ubuntu-latest
3233
timeout-minutes: 5
3334
steps:

.github/workflows/deploy-delete.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ concurrency:
1414

1515
jobs:
1616
deploy-delete:
17+
if: ${{ github.repository == 'andykenward/github-actions-cloudflare-pages' }}
1718
permissions:
1819
actions: read
1920
contents: read

.github/workflows/deploy-fork.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

.github/workflows/deploy-main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ concurrency:
1010

1111
jobs:
1212
deploy-main:
13+
if: ${{ github.repository == 'andykenward/github-actions-cloudflare-pages' }}
1314
permissions:
1415
actions: read
1516
contents: read

.github/workflows/deploy.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,8 @@ concurrency:
1010
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
1111

1212
jobs:
13-
fork:
14-
if: ${{ github.event.pull_request.head.repo.fork }}
15-
permissions:
16-
contents: read
17-
runs-on: ubuntu-latest
18-
timeout-minutes: 1
19-
steps:
20-
- name: Fork PR notice
21-
run: echo 'Fork pull request detected; skipping deploy job that requires repository secrets.'
22-
- name: Get PR number
23-
run: |
24-
echo "PR Number: ${{ github.event.number }}"
25-
- name: Get PR number other
26-
run: |
27-
echo "PR Number: ${{ github.event.pull_request.number }}"
28-
2913
deploy:
30-
if: ${{ !github.event.pull_request.head.repo.fork }}
14+
if: ${{ github.repository == 'andykenward/github-actions-cloudflare-pages' }}
3115
permissions:
3216
actions: read
3317
contents: read

.github/workflows/update.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ concurrency:
1111

1212
jobs:
1313
download:
14+
if: ${{ github.repository == 'andykenward/github-actions-cloudflare-pages' }}
1415
permissions:
1516
contents: write
1617
pull-requests: write
@@ -44,6 +45,7 @@ jobs:
4445
body: |
4546
This is an automated PR to update payloads.
4647
types:
48+
if: ${{ github.repository == 'andykenward/github-actions-cloudflare-pages' }}
4749
permissions:
4850
contents: write
4951
pull-requests: write

0 commit comments

Comments
 (0)