Skip to content

Commit 510f24e

Browse files
committed
update action yaml
1 parent 1043247 commit 510f24e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tools/amplify-preview/action.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ inputs:
88
description: 'Create preview branches using this actions instead of "auto-build" feature on AWS Amplify'
99
required: false
1010
default: "false"
11+
delete_branches:
12+
description: 'Delete preview branches using this actions when PR is closed'
13+
required: false
14+
default: "false"
1115
github_token:
1216
required: true
1317
description: "Github token with permissions to read/write comments in pull request"
@@ -51,7 +55,7 @@ runs:
5155
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
5256
id: extract_branch
5357

54-
- uses: actions/setup-go@v5
58+
- uses: actions/setup-go@v6
5559
with:
5660
go-version-file: ${{ github.action_path }}/go.mod
5761
cache-dependency-path: ${{ steps.cache_workaround.outputs.go_sum_path }}
@@ -62,6 +66,7 @@ runs:
6266
AMPLIFY_APP_IDS: ${{ inputs.app_ids }}
6367
GIT_BRANCH_NAME: ${{ steps.extract_branch.outputs.branch }}
6468
CREATE_BRANCHES: ${{ inputs.create_branches }}
69+
DELETE_BRANCHES: ${{ inputs.delete_branches }}
6570
GITHUB_TOKEN: ${{ inputs.github_token }}
6671
WAIT: ${{ inputs.wait }}
6772
WAIT_RETRIES: ${{ inputs.wait_retries }}

0 commit comments

Comments
 (0)