diff --git a/action.yml b/action.yml index 9eef6a881..5de412f25 100644 --- a/action.yml +++ b/action.yml @@ -15,17 +15,23 @@ runs: using: composite steps: - id: prep + shell: bash run: | # Determine added and modified files { echo 'changed<>"$GITHUB_OUTPUT" + env: + GH_TOKEN: ${{ inputs.github-token }} + GH_REPO: ${{ github.repository }} + GH_PR: ${{ github.event.payload.pull_request.number }} - if: ${{ steps.prep.outputs.changed }} + shell: bash run: | docker_run --interactive --rm \ --env LOG_LEVEL \ @@ -38,4 +44,7 @@ runs: --volume /tmp:/tmp \ --volume /var/run/docker.sock:/var/run/docker.sock \ --entrypoint restyle-path \ - '${{ inputs.image }}' ${{ steps.prep.outputs.changed }} + "$IMAGE" $CHANGED + env: + IMAGE: ${{ inputs.image }} + CHANGED: ${{ steps.prep.outputs.changed }}