Skip to content

Commit

Permalink
Adjust tutorials CI jobs for workflow_run event
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru authored and glatterf42 committed Nov 22, 2024
1 parent d351b18 commit 0ffb789
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ jobs:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

tutorials:
if: >
github.event_name != 'workflow_run' ||
github.event.workflow_run.conclusion == 'success'
strategy:
matrix:
os:
Expand All @@ -153,10 +157,18 @@ jobs:

steps:
- name: Check out message_ix
if: github.event_name != 'workflow_run'
uses: actions/checkout@v4
with:
fetch-depth: ${{ env.depth }}

- name: Check out message_ix (workflow_run)
if: github.event_name == 'workflow_run'
uses: actions/checkout@v4
with:
repository: ${{ github.event.workflow_run.repository }}
ref: ${{ github.event.workflow_run.head_branch }}

- uses: actions/setup-python@v5
with:
python-version: "3.12"
Expand Down

0 comments on commit 0ffb789

Please sign in to comment.