From b655c9d5647d9caa519886de2b4632b516e608ab Mon Sep 17 00:00:00 2001 From: Sander Roet Date: Tue, 19 Nov 2024 11:46:32 +0100 Subject: [PATCH 1/2] change ${{ github.action_path }} to $GITHUB_ACTION_PATH workaround for ${{ github.action_path }} not working inside containers --- action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 3e39fd1..132eb4e 100644 --- a/action.yml +++ b/action.yml @@ -149,7 +149,9 @@ runs: steps.pre-installed-python.outputs.python-path == '' && steps.new-python.outputs.python-path || steps.pre-installed-python.outputs.python-path - }} '${{ github.action_path }}/create-docker-action.py' + }} '$GITHUB_ACTION_PATH/create-docker-action.py' + # Use proposed workaround for ${{ github.action_path }} not working inside containers + # https://github.com/actions/runner/issues/2185#issuecomment-1683545859 env: REF: ${{ steps.set-repo-and-ref.outputs.ref }} REPO: ${{ steps.set-repo-and-ref.outputs.repo }} From 0c148d612697a012f828c4698c7d6d7962f057b7 Mon Sep 17 00:00:00 2001 From: Sander Roet Date: Tue, 19 Nov 2024 11:49:52 +0100 Subject: [PATCH 2/2] fix pre-commit not running in github web editor --- action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 132eb4e..de63026 100644 --- a/action.yml +++ b/action.yml @@ -150,7 +150,8 @@ runs: && steps.new-python.outputs.python-path || steps.pre-installed-python.outputs.python-path }} '$GITHUB_ACTION_PATH/create-docker-action.py' - # Use proposed workaround for ${{ github.action_path }} not working inside containers + # Use proposed workaround for ${{ github.action_path }} not working + # inside containers # https://github.com/actions/runner/issues/2185#issuecomment-1683545859 env: REF: ${{ steps.set-repo-and-ref.outputs.ref }}