Fix action_path references

This commit is contained in:
TSR Berry 2023-09-17 12:40:35 +02:00
parent 6358a37947
commit 44caec63c4
No known key found for this signature in database
GPG Key ID: 52353C0A4CCA15E2
3 changed files with 16 additions and 4 deletions

View File

@ -20,8 +20,14 @@ inputs:
runs:
using: 'composite'
steps:
- name: Get Mako path
id: path
run: |
echo "mako=$(realpath '${{ github.action_path }}/../../../')" >> $GITHUB_OUTPUT
shell: bash
- run: |
poetry -n -C "${{ github.action_path }}" run ryujinx-mako ${{ inputs.command }} ${{ inputs.args }}
poetry -n -C "${{ steps.path.outputs.mako }}" run ryujinx-mako ${{ inputs.command }} ${{ inputs.args }}
shell: bash
env:
MAKO_APP_ID: ${{ inputs.app_id }}

View File

@ -3,10 +3,16 @@ description: 'Setup the environment for Mako'
runs:
using: 'composite'
steps:
- name: Get Mako path
id: path
run: |
echo "mako=$(realpath '${{ github.action_path }}/../../../')" >> $GITHUB_OUTPUT
shell: bash
- run: pipx install poetry
shell: bash
- run: |
cd "${{ github.action_path }}/../"
cd "${{ steps.path.outputs.mako }}"
poetry install --only main
shell: bash

View File

@ -29,11 +29,11 @@ runs:
shell: bash
- name: Setup Mako
if: steps.check_dest.outputs.exists == "false"
if: steps.check_dest.outputs.exists == 'false'
uses: ./.github/actions/setup-mako
- name: Create setup finished flag
if: steps.check_dest.outputs.exists == "false"
if: steps.check_dest.outputs.exists == 'false'
run: touch "${{ github.action_path }}/.ryujinx-mako_setup-done"
shell: bash