generated from cloudposse-github-actions/composite-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
entrypoint.sh
executable file
·31 lines (25 loc) · 1011 Bytes
/
entrypoint.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
set -e
export GO_GETTER_TOOL="/root/go/bin/go-getter"
cd /github/action/
python3 src/main.py \
--github-api-token ${GITHUB_ACCESS_TOKEN} \
--go-getter-tool ${GO_GETTER_TOOL} \
--infra-repo-name ${GITHUB_REPOSITORY} \
--infra-repo-dir ${INFRA_REPO_DIR} \
--infra-terraform-dirs "${INFRA_TERRAFORM_DIRS}" \
--vendoring-enabled ${VENDORING_ENABLED} \
--max-number-of-prs ${MAX_NUMBER_OF_PRS} \
--include "${INCLUDE}" \
--exclude "${EXCLUDE}" \
--log-level ${LOG_LEVEL} \
--dry-run ${DRY_RUN} \
--pr-labels "${PR_LABELS}" \
--pr-title-template "${PR_TITLE_TEMPLATE}" \
--pr-body-template "${PR_BODY_TEMPLATE}" \
--affected-components-file 'affected-components.json'
cat affected-components.json
affected=$(jq -c '.' < affected-components.json)
echo "affected=$affected" >> $GITHUB_OUTPUT
[[ "$affected" == "[]" ]] && has_affected_stacks=true || has_affected_stacks=false
echo "has-affected-stacks=$has_affected_stacks" >> $GITHUB_OUTPUT