Skip to content

Commit

Permalink
Prevent GitHub actions from running twice
Browse files Browse the repository at this point in the history
  • Loading branch information
gschlager committed Jun 2, 2024
1 parent c648552 commit 44c8b80
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test-bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ jobs:
os: [ubuntu-latest, macos-latest, macos-13]
ruby: ['3.0', '3.1', '3.2', '3.3', 'head']

name: >-
${{matrix.os}}, ${{matrix.ruby}}
name: ${{matrix.os}}, ${{matrix.ruby}}

if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name

runs-on: ${{matrix.os}}
steps:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ jobs:
os: [ubuntu-latest, macos-latest, macos-13]
ruby: ['3.0', '3.1', '3.2', '3.3', 'head']

name: >-
${{matrix.os}}, ${{matrix.ruby}}
name: ${{matrix.os}}, ${{matrix.ruby}}

if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name

runs-on: ${{matrix.os}}
steps:
Expand Down

0 comments on commit 44c8b80

Please sign in to comment.