pulumi-hugo-cn/scripts/ci/scheduled.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
460 B
Bash
Raw Permalink Normal View History

2021-04-06 07:36:14 -07:00
#!/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