Skip to content

Commit

Permalink
Merge pull request #4 from stack-spot/fix/variable-path
Browse files Browse the repository at this point in the history
change default about path_to_mount
  • Loading branch information
ladylokizup authored Feb 6, 2024
2 parents 9a4106f + b98e098 commit 72e6cb8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
RUN_TASK_ID: ${{ matrix.task.runTaskId }}
CONTAINER_URL: my/container-url # not mandatory
FEATURES_TERRAFORM_MODULES: ... # not mandatory
PATH_TO_MOUNT: ${{ github_workflow }}
PATH_TO_MOUNT: path/to/mount # not mandatory
```
* * *
Expand All @@ -64,7 +64,7 @@ Field | Mandatory | Observation
**REPOSITORY_NAME** | YES | Repository name to checkout during task process.
**CONTAINER_URL** | NO | Container url reference (e.g `stackspot/image`)
**FEATURES_TERRAFORM_MODULES** | NO | List of external terraform modules allowed
**PATH_TO_MOUNT** | YES | Path provided to be used as a volume within the docker image that will be used with terraform
**PATH_TO_MOUNT** | NO | Path provided to be used as a volume within the docker image that will be used with terraform

* * *

Expand Down
9 changes: 8 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ inputs:
required: false
PATH_TO_MOUNT:
description: "Path to mount inside the docker"
required: true
required: false
default: ${{ github.workspace }}

runs:
using: "composite"
Expand All @@ -60,6 +61,12 @@ runs:
role-to-assume: ${{ inputs.AWS_ROLE_ARN }}
aws-region: ${{ inputs.AWS_REGION }}
output-credentials: true

- name: Checkout
if: ${{ inputs.PATH_TO_MOUNT == github.workspace }}
uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}

- name: Run Runtime Action Destroy
if: ${{ inputs.AWS_ROLE_ARN == 0 }}
Expand Down

0 comments on commit 72e6cb8

Please sign in to comment.