Skip to content

Commit 6407e9a

Browse files
authored
ci: trigger test workflow on pixi env update (#2714)
Automatic pixi environment update PRs are convenient, but don't currently trigger the CI tests, so we have to pull the branch and test the updates locally. Add a trigger so we get CI testing on pixi environment update.
1 parent 22e05e1 commit 6407e9a

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ on:
3535
- "doc/**.sh"
3636
- "doc/**.xlsx"
3737
- ".hpc/**"
38+
workflow_dispatch:
3839
concurrency:
3940
group: ${{ github.workflow }}-${{ github.ref }}
4041
cancel-in-progress: true

.github/workflows/pixi_auto_update.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
pixi update --json | pixi exec pixi-diff-to-markdown >> diff.md
2525
2626
- uses: peter-evans/create-pull-request@v8
27+
id: create-pr
2728
with:
2829
token: ${{ secrets.GITHUB_TOKEN }}
2930
branch: update/pixi-lock
@@ -32,3 +33,10 @@ jobs:
3233
body-path: diff.md
3334
add-paths: pixi.lock
3435
author: "GitHub <noreply@github.com>"
36+
37+
- name: Trigger CI workflow
38+
if: steps.create-pr.outputs.pull-request-number
39+
run: gh workflow run ci.yml --ref update/pixi-lock
40+
env:
41+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+

0 commit comments

Comments
 (0)