cold-lizard-19815
10/27/2022, 7:46 PMpost_workflow_hooks:
- run: |
# In order to stop commenting on PRs twice we need to check
# if the Infracost output directory created in our 'plan' stage exists before continuing.
if [ ! -d "/infracost/$BASE_REPO_OWNER-$BASE_REPO_NAME-$PULL_NUM" ]; then
exit 0
fi
infracost comment github --repo $BASE_REPO_OWNER/$BASE_REPO_NAME \
--pull-request $PULL_NUM \
--path /infracost/$BASE_REPO_OWNER-$BASE_REPO_NAME-$PULL_NUM/'*'.json \
--github-api-url $GH_API_URL \
--github-token $ATLANTIS_GH_TOKEN \
--behavior hide-and-new
`# remove the Infracost output directory so that infracost comment
is not`
`# triggered on an `atlantis apply``
rm -rf /infracost/$BASE_REPO_OWNER-$BASE_REPO_NAME-$PULL_NUM
white-airport-8778
10/27/2022, 7:48 PMcold-lizard-19815
10/27/2022, 7:54 PMwhite-airport-8778
10/27/2022, 7:55 PMcold-lizard-19815
10/27/2022, 7:55 PMwhite-airport-8778
10/27/2022, 9:31 PMcold-lizard-19815
10/27/2022, 9:52 PMwhite-airport-8778
12/22/2022, 8:47 PM