diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ec078b5..4fc508e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,6 +9,8 @@ on: - '2fa_bot.py' - 'requirements.txt' - 'scripts/**' + - 'container_overrides/**' + - '.github/workflows/main.yml' # Runs automatically every day at 0:00 UTC (8:00 AM Beijing Time) schedule: - cron: '0 0 * * *' diff --git a/tests/test_workflow_shared_config.sh b/tests/test_workflow_shared_config.sh index ed3ed9d..2541498 100644 --- a/tests/test_workflow_shared_config.sh +++ b/tests/test_workflow_shared_config.sh @@ -37,6 +37,8 @@ grep -Fq 'Sync GitHub secrets to Secret Manager' "$workflow_file" grep -Fq 'gcloud secrets versions add "${secret_name}"' "$workflow_file" grep -Fq "paths:" "$workflow_file" grep -Fq "'scripts/**'" "$workflow_file" +grep -Fq "'container_overrides/**'" "$workflow_file" +grep -Fq "'.github/workflows/main.yml'" "$workflow_file" grep -Fq 'DEPLOY_MODE="full"' "$workflow_file" grep -Fq 'if [ "${DEPLOY_EVENT_NAME}" = "schedule" ]; then' "$workflow_file" grep -Fq 'elif [ "${DEPLOY_EVENT_NAME}" = "workflow_dispatch" ]; then' "$workflow_file"