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 committed Nov 21, 2024
1 parent 2fcf140 commit 684dea9
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 684dea9

Please sign in to comment.