Skip to content

Commit

Permalink
ci: Fix nightly schedule check for cargo doc (#4406)
Browse files Browse the repository at this point in the history
  • Loading branch information
max-sixty authored Apr 22, 2024
1 parent e3a64b5 commit 66c4c4b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@ jobs:
run:
echo "run=${{ steps.changes.outputs.nightly == 'true' ||
contains(github.event.pull_request.labels.*.name, 'pr-nightly') ||
github.event.schedule }}" >>"$GITHUB_OUTPUT"
github.event_name == 'schedule' }}" >>"$GITHUB_OUTPUT"

- id: nightly-schedule
run:
echo "run=${{ github.event.schedule == 'true' }}" >>"$GITHUB_OUTPUT"
echo "run=${{ github.event_name == 'schedule' }}" >>"$GITHUB_OUTPUT"

- id: main
run:
Expand Down Expand Up @@ -689,9 +689,10 @@ jobs:
needs:
- check-ok-to-merge
if:
# We care that it's on a schedule as well as it running on nightly — we
# We check that it's on a schedule as well as it running on nightly — we
# don't want to trigger just on a `pr-nightly` label
always() && github.event.schedule && contains(needs.*.result, 'failure')
always() && (github.event_name == 'schedule') && contains(needs.*.result,
'failure')
permissions:
contents: read
issues: write
Expand Down

0 comments on commit 66c4c4b

Please sign in to comment.