Skip to content

Commit 40829e9

Browse files
authored
FIX: Use $GITHUB_ACTION_PATH to locate pixi.lock for downstream users (#96)
* As the GitHub Action is being used in other workflows, it does not know the local file paths and so to have prefix-dev/setup-pixi find the lock file and 'pixi run' know where `upload_wheels.sh` is, the environmental variable 'GITHUB_ACTION_PATH' is used through the '${{ github.action_path }}' context. - c.f. https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#default-environment-variables
1 parent e5087b7 commit 40829e9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ runs:
3434
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
3535
# Avoid post cleanup errors if action run multiple times
3636
post-cleanup: false
37+
# Action consumers should load the lock file from the action repo
38+
manifest-path: ${{ github.action_path }}/pixi.toml
3739

3840
- name: Upload wheels
3941
shell: bash
@@ -43,4 +45,4 @@ runs:
4345
INPUT_ANACONDA_NIGHTLY_UPLOAD_TOKEN: ${{ inputs.anaconda_nightly_upload_token }}
4446
INPUT_ANACONDA_NIGHTLY_UPLOAD_LABELS: ${{ inputs.anaconda_nightly_upload_labels }}
4547
run: |
46-
pixi run upload_wheels.sh
48+
pixi run ${{ github.action_path }}/upload_wheels.sh

0 commit comments

Comments
 (0)