Skip to content

Commit

Permalink
Tweak CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jul 18, 2023
1 parent e8d09fb commit 366ae13
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,6 @@ jobs:
run: rustup toolchain add nightly --no-self-update --component rustfmt && rustup default nightly
- run: tools/no_atomic.sh
- run: tools/gen.sh
- run: git add -N . && git diff --exit-code
if: github.repository_owner != 'taiki-e' || github.event_name != 'schedule' && !(github.event_name == 'push' && github.ref == 'refs/heads/main')
- id: diff
run: ci/gen.sh
if: github.repository_owner == 'taiki-e' && (github.event_name == 'schedule' || github.event_name == 'push' && github.ref == 'refs/heads/main')
Expand All @@ -526,3 +524,4 @@ jobs:
[2]: https://github.com/peter-evans/create-pull-request/blob/HEAD/docs/concepts-guidelines.md#workarounds-to-trigger-further-workflow-runs
branch: update-generated-code
if: github.repository_owner == 'taiki-e' && (github.event_name == 'schedule' || github.event_name == 'push' && github.ref == 'refs/heads/main') && steps.diff.outputs.success == 'false'
- run: git add -N . && git diff --exit-code

0 comments on commit 366ae13

Please sign in to comment.