mirror of
https://github.com/DaoCloud/public-image-mirror.git
synced 2025-08-08 11:05:56 +08:00
Add check to workflows
This commit is contained in:
15
.github/workflows/check.yml
vendored
Normal file
15
.github/workflows/check.yml
vendored
Normal file
@@ -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
|
@@ -1,5 +1,9 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -o errexit
|
||||||
|
set -o nounset
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
declare -A DOMAIN_MAP=()
|
declare -A DOMAIN_MAP=()
|
||||||
|
|
||||||
for line in $(cat ./domain.txt); do
|
for line in $(cat ./domain.txt); do
|
||||||
|
Reference in New Issue
Block a user