Skip to content

Commit

Permalink
refactor: AWS_S3_BUCKET needs to map to new upload-plan-destination-s…
Browse files Browse the repository at this point in the history
…3-bucket, and add support for upload-plan-destination
  • Loading branch information
pcfreak30 committed Jan 3, 2025
1 parent e4af71a commit fb2bfca
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ inputs:
description: AWS region
required: false
default: us-east-1
aws-bucket:
description: S3 bucket for plan uploads
required: true
digger-version:
description: Version of digger to use (must match a release tag)
required: true
Expand Down Expand Up @@ -51,6 +48,12 @@ inputs:
description: Post plans as one comment
required: false
default: 'false'
upload-plan-destination:
description: Destination to upload the plan to. gcp, github and aws are currently supported.
required: false
upload-plan-destination-s3-bucket:
description: Name of the destination bucket for AWS S3. Should be provided if destination == aws
required: false
runs:
using: composite
steps:
Expand Down Expand Up @@ -93,14 +96,15 @@ runs:
- name: Run Digger with Environment Setup
shell: bash
env:
PLAN_UPLOAD_DESTINATION: ${{ inputs.upload-plan-destination }}
AWS_S3_BUCKET: ${{ inputs.upload-plan-destination-s3-bucket }}
INPUT_DIGGER_PROJECT: ${{ inputs.project }}
INPUT_DIGGER_MODE: ${{ inputs.mode }}
INPUT_DIGGER_COMMAND: ${{ inputs.command }}
AWS_ACCESS_KEY_ID: ${{ inputs.aws-access-key-id }}
AWS_SECRET_ACCESS_KEY: ${{ inputs.aws-secret-access-key }}
AWS_ENDPOINT_URL: ${{ inputs.aws-endpoint-url }}
AWS_REGION: ${{ inputs.aws-region }}
AWS_S3_BUCKET: ${{ inputs.aws-bucket }}
DIGGER_RUN_SPEC: ${{ inputs.digger-spec }}
SECRETS_CONTEXT: ${{ inputs.secrets-context }}
VARIABLES_CONTEXT: ${{ inputs.variables-context }}
Expand Down

0 comments on commit fb2bfca

Please sign in to comment.