Launchable: Fix Python package path

This commit is contained in:
Naoto Ono 2024-07-17 16:03:19 +09:00 коммит произвёл Yusuke Endoh
Родитель 03a0ade90d
Коммит 2b3bfbc4c7
1 изменённых файлов: 8 добавлений и 1 удалений

9
.github/actions/launchable/setup/action.yml поставляемый
Просмотреть файл

@ -96,12 +96,19 @@ runs:
echo "LAUNCHABLE_TOKEN=${{ inputs.launchable-token }}" >> $GITHUB_ENV echo "LAUNCHABLE_TOKEN=${{ inputs.launchable-token }}" >> $GITHUB_ENV
if: steps.enable-launchable.outputs.enable-launchable if: steps.enable-launchable.outputs.enable-launchable
- name: Set up path
shell: bash
working-directory: ${{ inputs.srcdir }}
# Since updated PATH variable will be available in only subsequent actions, we need to add the path beforehand.
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-system-path
run: echo "$(python -msite --user-base)/bin" >> $GITHUB_PATH
if: startsWith(inputs.os, 'macos')
- name: Set up Launchable - name: Set up Launchable
shell: bash shell: bash
working-directory: ${{ inputs.srcdir }} working-directory: ${{ inputs.srcdir }}
run: | run: |
set -x set -x
echo "$(python -msite --user-base)/bin" >> $GITHUB_PATH
pip install --user launchable pip install --user launchable
launchable verify || true launchable verify || true
: # The build name cannot include a slash, so we replace the string here. : # The build name cannot include a slash, so we replace the string here.