pulumi-hugo-cn/scripts/ci/scheduled.sh
Christian Nunciato fb56ee45f6 Initial commit
2021-04-06 07:36:14 -07:00

15 lines
460 B
Bash
Executable File

#!/bin/bash
set -o errexit -o pipefail
# This script runs the bucket-removal script to clean up old buckets produced by PR and push jobs.
# See if we have the requisite credentials. If not, we might be in a fork, so exit.
if [ -z "${AWS_ACCESS_KEY_ID:-}" ] || [ -z "${AWS_SECRET_ACCESS_KEY:-}" ]; then
echo "Missing secret tokens, possibly due to a forked PR. Exiting."
exit
fi
./scripts/ci/remove-buckets.sh push
./scripts/ci/remove-buckets.sh pr