Skip to content

Commit

Permalink
Update test-and-release.yml
Browse files Browse the repository at this point in the history
Runs on PRs from forks
  • Loading branch information
pavel-kirienko authored Jul 29, 2024
1 parent a2442f0 commit 2d83975
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'Test and Release Yakut'
on: push
name: 'Test and release Yakut'
on: [ push, pull_request ]

# Ensures that only one workflow is running at a time
concurrency:
Expand All @@ -9,6 +9,8 @@ concurrency:
jobs:
yakut-test:
name: Test Yakut
# https://docs.github.com/en/webhooks/webhook-events-and-payloads?actionType=edited#pull_request
if: (github.event_name == 'push') || github.event.pull_request.head.repo.fork
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -71,7 +73,9 @@ jobs:
yakut-release:
name: Release Yakut
runs-on: ubuntu-latest
if: contains(github.event.head_commit.message, '#release') || contains(github.ref, '/main')
if: >
(github.event_name == 'push') &&
(contains(github.event.head_commit.message, '#release') || contains(github.ref, '/main'))
needs: yakut-test
steps:
- name: Check out
Expand Down

0 comments on commit 2d83975

Please sign in to comment.