Skip to content

Commit 7885ddc

Browse files
committed
Fix workflows running for pull requests from forks
1 parent 328490f commit 7885ddc

File tree

5 files changed

+2
-12
lines changed

5 files changed

+2
-12
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v3
14-
with:
15-
ref: ${{ github.head_ref }}
1614
- name: Use Node.js 18
1715
uses: actions/setup-node@v3
1816
with:

.github/workflows/lint.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v3
15-
with:
16-
ref: ${{ github.head_ref }}
1715
- name: Use Node.js 18
1816
uses: actions/setup-node@v3
1917
with:

.github/workflows/preview.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,10 @@ on:
1212

1313
jobs:
1414
preview:
15-
if: github.repository_owner == 'citation-file-format'
15+
if: github.repository == 'citation-file-format/cff-initializer-javascript'
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/checkout@v3
19-
with:
20-
ref: ${{ github.head_ref }}
2119
- name: Use Node.js 18
2220
uses: actions/setup-node@v3
2321
with:
@@ -46,7 +44,7 @@ jobs:
4644
user_email: 'cffinit[bot]@users.noreply.github.com'
4745
commit_message: ':robot: Create preview of ${{ env.PUBLICPATH }}'
4846
pr_comment:
49-
if: github.event_name == 'pull_request' && github.repository_owner == 'citation-file-format'
47+
if: github.event_name == 'pull_request' && github.repository == 'citation-file-format/cff-initializer-javascript'
5048
needs: preview
5149
runs-on: ubuntu-latest
5250
steps:

.github/workflows/publish.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v3
13-
with:
14-
ref: ${{ github.head_ref }}
1513
- name: Use Node.js 18
1614
uses: actions/setup-node@v3
1715
with:

.github/workflows/test.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v3
15-
with:
16-
ref: ${{ github.head_ref }}
1715
- name: Use Node.js 18
1816
uses: actions/setup-node@v3
1917
with:

0 commit comments

Comments
 (0)