From 41cfe244bfef69c4db5f7bfdec021aa98d642fb8 Mon Sep 17 00:00:00 2001 From: xyny <60004820+xynydev@users.noreply.github.com> Date: Wed, 8 May 2024 16:36:42 +0000 Subject: [PATCH] feat: support changing working directory (#43) --- action.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/action.yml b/action.yml index 45d1dcd..7d81b22 100644 --- a/action.yml +++ b/action.yml @@ -63,6 +63,12 @@ inputs: disables cache. required: false default: 'false' + working_directory: + description: | + Changes working directory for whole build. + For example, setting this to `./abc/` would cause for the recipe to be read from `./abc/recipes/recipe.yml`. + required: false + default: ./ runs: using: "composite" @@ -134,6 +140,7 @@ runs: - name: Build Image shell: bash if: ${{ inputs.squash != 'true' }} + working-directory: ${{ inputs.working_directory }} env: COSIGN_PRIVATE_KEY: ${{ inputs.cosign_private_key }} GH_TOKEN: ${{ inputs.registry_token }} @@ -148,6 +155,7 @@ runs: - name: Build Squashed Image shell: bash if: ${{ inputs.squash == 'true' }} + working-directory: ${{ inputs.working_directory }} env: COSIGN_PRIVATE_KEY: ${{ inputs.cosign_private_key }} GH_TOKEN: ${{ inputs.registry_token }}