Skip to content

Commit

Permalink
Do not run schedule task in fork repos (#3628)
Browse files Browse the repository at this point in the history
Motivation:

Currently, GitHub Actions scheduled job runs on all fork repo,
because of the lack of some secrets, the job is impossible to
succeed forever, causing noisy notifications. Also, the job is
not expected to be executed in fork repos I think.

Modifications:

- Add condition to the job to only run it when the current repo
is `line/armeria`.

Result:

- Schedule jobs are run on `line/armeria` repo only.
  • Loading branch information
kezhenxu94 authored Jun 10, 2021
1 parent 96c07bd commit 7bf1873
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/public-suffixes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:

jobs:
update-psl:
if: github.repository == 'line/armeria'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit 7bf1873

Please sign in to comment.