From 5a76dd9b940781da661dd91888886755c8e81ae3 Mon Sep 17 00:00:00 2001 From: Shiming Zhang Date: Fri, 10 Sep 2021 19:24:29 +0800 Subject: [PATCH] Add check to workflows --- .github/workflows/check.yml | 15 +++++++++++++++ scripts/check-image.sh | 4 ++++ 2 files changed, 19 insertions(+) create mode 100644 .github/workflows/check.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000000..3e61a136c5 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,15 @@ +name: "Check Image" +on: + workflow_dispatch: + + schedule: + - cron: "0 0 * * *" + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Check + run: | + ./scripts/check-image.sh diff --git a/scripts/check-image.sh b/scripts/check-image.sh index 6cf1ba2329..31fde5de53 100755 --- a/scripts/check-image.sh +++ b/scripts/check-image.sh @@ -1,5 +1,9 @@ #!/usr/bin/env bash +set -o errexit +set -o nounset +set -o pipefail + declare -A DOMAIN_MAP=() for line in $(cat ./domain.txt); do