Skip to content

Commit 52ffdc0

Browse files
authored
Merge pull request #2362 from DanielEScherzer/grammar-check-workflow-dispatch
Grammar check: allow workflow dispatch on forks
2 parents 83c1a64 + d992b1b commit 52ffdc0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎.github/workflows/daily-grammar-check.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
grammar-check:
10-
if: github.repository == 'rust-lang/reference'
10+
if: github.repository == 'rust-lang/reference' || github.event_name == 'workflow_dispatch'
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout reference repository
@@ -44,7 +44,7 @@ jobs:
4444
cargo run --release -p grammar-check -- lex-compare --tool rustc_parse
4545
4646
- name: Check for existing open issues
47-
if: steps.grammar-check.outcome == 'failure'
47+
if: github.repository == 'rust-lang/reference' && steps.grammar-check.outcome == 'failure'
4848
id: check-issues
4949
env:
5050
GH_TOKEN: ${{ github.token }}
@@ -54,7 +54,7 @@ jobs:
5454
echo "open_issues=$ISSUE_COUNT" >> $GITHUB_OUTPUT
5555
5656
- name: Create issue on failure
57-
if: steps.grammar-check.outcome == 'failure' && steps.check-issues.outputs.open_issues == '0'
57+
if: github.repository == 'rust-lang/reference' && steps.grammar-check.outcome == 'failure' && steps.check-issues.outputs.open_issues == '0'
5858
env:
5959
GH_TOKEN: ${{ github.token }}
6060
run: |

0 commit comments

Comments
 (0)