From cd4dce0fd5049b86ecb65a5df4faa244e6671e36 Mon Sep 17 00:00:00 2001 From: J <91372088+jarelllama@users.noreply.github.com> Date: Thu, 12 Dec 2024 09:18:28 +0800 Subject: [PATCH] workflows: update workflow/job names --- .../{build_deploy.yml => auto_retrieve.yml} | 24 +++++++++---------- .github/workflows/build_lists.yml | 4 ++-- .github/workflows/check_dead.yml | 14 +++++------ .github/workflows/check_parked.yml | 8 +++---- 4 files changed, 25 insertions(+), 25 deletions(-) rename .github/workflows/{build_deploy.yml => auto_retrieve.yml} (84%) diff --git a/.github/workflows/build_deploy.yml b/.github/workflows/auto_retrieve.yml similarity index 84% rename from .github/workflows/build_deploy.yml rename to .github/workflows/auto_retrieve.yml index 73924891b..c70e1f386 100644 --- a/.github/workflows/build_deploy.yml +++ b/.github/workflows/auto_retrieve.yml @@ -1,5 +1,5 @@ -name: Build and deploy -run-name: Build and deploy +name: Automatic retreival +run-name: Automatic retreival on: workflow_dispatch: schedule: @@ -19,17 +19,17 @@ jobs: build-nsfw: needs: test - if: ${{ ! cancelled() && needs.test.result == 'success' }} + if: ${{ ! cancelled() }} uses: ./.github/workflows/build_nsfw.yml - build: + retrieve-domains: needs: [test, build-nsfw] if: ${{ ! cancelled() && needs.test.result == 'success' }} uses: ./.github/workflows/retrieve_domains.yml secrets: inherit - prune-dead: - needs: [test, build] + check-dead: + needs: [test, retrieve-domains] if: ${{ ! cancelled() && needs.test.result == 'success' }} uses: ./.github/workflows/check_dead.yml @@ -40,18 +40,18 @@ jobs: # uses: ./.github/workflows/check_parked.yml validate: - needs: [test, prune-dead] + needs: [test, check-dead] if: ${{ ! cancelled() && needs.test.result == 'success' }} uses: ./.github/workflows/validate_domains.yml secrets: inherit - deploy: + build: needs: [test, validate] if: ${{ ! cancelled() && needs.test.result == 'success' }} uses: ./.github/workflows/build_lists.yml prune-logs: - needs: deploy + needs: build if: ${{ ! cancelled() }} runs-on: ubuntu-latest steps: @@ -74,7 +74,7 @@ jobs: git push -q update-readme: - needs: [deploy, prune-logs] - # Run only if deployment was successful - if: ${{ ! cancelled() && needs.deploy.result == 'success' }} + needs: [build, prune-logs] + # Run only if build was successful + if: ${{ ! cancelled() && needs.build.result == 'success' }} uses: ./.github/workflows/update_readme.yml diff --git a/.github/workflows/build_lists.yml b/.github/workflows/build_lists.yml index 38cbd0b11..913704b3c 100644 --- a/.github/workflows/build_lists.yml +++ b/.github/workflows/build_lists.yml @@ -5,8 +5,8 @@ on: workflow_call: workflow_run: workflows: - - Remove dead domains - - Remove parked domains + - Check for dead domains + - Check for parked domains - Manually add domains - Retrieve domains - Validate domains diff --git a/.github/workflows/check_dead.yml b/.github/workflows/check_dead.yml index 4175c3856..32ff0ef86 100644 --- a/.github/workflows/check_dead.yml +++ b/.github/workflows/check_dead.yml @@ -1,5 +1,5 @@ -name: Remove dead domains -run-name: Remove dead domains +name: Check for dead domains +run-name: Check for dead domains on: workflow_dispatch: workflow_call: @@ -7,7 +7,7 @@ permissions: contents: write jobs: - remove-dead-domains-1: + part-1: runs-on: ubuntu-latest steps: - name: Checkout @@ -23,11 +23,11 @@ jobs: git config user.email ${{ vars.GIT_EMAIL }} git config user.name ${{ vars.GIT_USERNAME }} git add . - git diff-index --quiet HEAD || git commit -m "CI: prune dead domains part 1" + git diff-index --quiet HEAD || git commit -m "CI: check for dead domains (1)" git push -q - remove-dead-domains-2: - needs: remove-dead-domains-1 + part-2: + needs: part-1 runs-on: ubuntu-latest steps: - name: Checkout @@ -44,5 +44,5 @@ jobs: git config user.email ${{ vars.GIT_EMAIL }} git config user.name ${{ vars.GIT_USERNAME }} git add . - git diff-index --quiet HEAD || git commit -m "CI: prune dead domains part 2" + git diff-index --quiet HEAD || git commit -m "CI: check for dead domains (2)" git push -q diff --git a/.github/workflows/check_parked.yml b/.github/workflows/check_parked.yml index d42663d87..69bdfb938 100644 --- a/.github/workflows/check_parked.yml +++ b/.github/workflows/check_parked.yml @@ -1,5 +1,5 @@ -name: Remove parked domains -run-name: Remove parked domains +name: Check for parked domains +run-name: Check for parked domains on: workflow_dispatch: schedule: @@ -10,7 +10,7 @@ permissions: contents: write jobs: - remove-parked-domains: + check-parked-domains: runs-on: ubuntu-latest steps: - name: Checkout @@ -26,5 +26,5 @@ jobs: git config user.email ${{ vars.GIT_EMAIL }} git config user.name ${{ vars.GIT_USERNAME }} git add . - git diff-index --quiet HEAD || git commit -m "CI: prune parked domains" + git diff-index --quiet HEAD || git commit -m "CI: check for parked domains" git push -q