diff --git a/README.md b/README.md index dbf9add..3df6ace 100644 --- a/README.md +++ b/README.md @@ -39,9 +39,9 @@ jobs: AWS_ROLE_ARN: ${{ secrets.AWS_ROLE_ARN }} AWS_REGION: sa-east-1 CONTAINER_URL: my/container-url # not mandatory - REPOSITORY_NAME: my-repository-name + REPOSITORY_NAME: my-repository-name # not mandatory RUN_TASK_ID: ${{ matrix.task.runTaskId }} - PATH_TO_MOUNT: path/to/mount + PATH_TO_MOUNT: path/to/mount # not mandatory BASE_PATH_OUTPUT: path/to/save/file # not mandatory CHECKOUT_BRANCH: 'true' # not mandatory ``` @@ -61,9 +61,9 @@ Field | Mandatory | Observation **AWS_SESSION_TOKEN** | NO | [AWS](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html) Session Token **AWS_ROLE_ARN** | NO | AWS IAM ROLE (necessary if AWS credentials not informed) **AWS_REGION** | YES | AWS region where files will be stored (e.g: `us-east-1`). -**REPOSITORY_NAME** | YES | Repository name to checkout during task process. +**REPOSITORY_NAME** | NO | Repository name to checkout during task process. **CONTAINER_URL** | NO | Container url reference (e.g `stackspot/image`) -**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 **RUN_TASK_ID** | YES | StackSpot Runtime task id to be executed, according to [runtime-manager-action](https://github.com/stack-spot/runtime-manager-action). **BASE_PATH_OUTPUT** | NO | Folder path to save the iac.zip generated by the action. **CHECKOUT_BRANCH** | NO | Whether or not checkout is enabled. (default: `'false'`) diff --git a/action.yaml b/action.yaml index a07745f..eadb9f7 100644 --- a/action.yaml +++ b/action.yaml @@ -15,7 +15,7 @@ inputs: required: true REPOSITORY_NAME: description: "Git Repository Name" - required: true + required: false default: ${{ github.event.repository.name }} AWS_ACCESS_KEY_ID: description: "AWS ACCESS KEY ID from console" @@ -37,13 +37,14 @@ inputs: required: true PATH_TO_MOUNT: description: "Path to mount inside the docker" - required: true + required: false default: ${{ github.workspace }} BASE_PATH_OUTPUT: description: "Base Path Output" required: false CONTAINER_URL: description: "IAC Container url" + required: false default: stackspot/runtime-job-iac:latest CHECKOUT_BRANCH: description: "Whether or not checkout is enabled."