Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzhichang committed Dec 30, 2023
1 parent d4b4680 commit 724de51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ on:
jobs:
tests:
name: tests
# https://docs.github.com/en/actions/using-jobs/using-conditions-to-control-job-execution
# https://github.com/orgs/community/discussions/26261
if: contains(github.event.pull_request.labels.*.name, 'ci')
if: ${{ github.event != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'ci') }}
runs-on: ubuntu-latest
steps:
- name: Ensure workspace ownership
Expand Down

0 comments on commit 724de51

Please sign in to comment.