Skip to content

Commit

Permalink
workflows: update workflow/job names
Browse files Browse the repository at this point in the history
  • Loading branch information
jarelllama authored Dec 12, 2024
1 parent 16cce96 commit cd4dce0
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Build and deploy
run-name: Build and deploy
name: Automatic retreival
run-name: Automatic retreival
on:
workflow_dispatch:
schedule:
Expand All @@ -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

Expand All @@ -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:
Expand All @@ -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
4 changes: 2 additions & 2 deletions .github/workflows/build_lists.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/check_dead.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
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:
permissions:
contents: write

jobs:
remove-dead-domains-1:
part-1:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -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
Expand All @@ -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
8 changes: 4 additions & 4 deletions .github/workflows/check_parked.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -10,7 +10,7 @@ permissions:
contents: write

jobs:
remove-parked-domains:
check-parked-domains:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -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

0 comments on commit cd4dce0

Please sign in to comment.