Build lists #405
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build lists | |
run-name: Build lists | |
on: | |
workflow_dispatch: | |
workflow_call: | |
workflow_run: | |
workflows: | |
- Remove dead domains | |
- Remove parked domains | |
- Manually add domains | |
- Run openSquat | |
- Retrieve domains | |
- Validate entries | |
types: | |
- completed | |
permissions: | |
contents: write | |
jobs: | |
build-lists: | |
# Do not run if workflow_run failed/cancelled (still allows workflow_dispatch and workflow_call) | |
if: ${{ github.event.workflow_run.conclusion != 'failure' && github.event.workflow_run.conclusion != 'cancelled' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: main | |
- name: build_list.sh | |
run: bash functions/build_lists.sh | |
- name: Push | |
run: | | |
git config user.email ${{ vars.GIT_EMAIL }} | |
git config user.name ${{ vars.GIT_USERNAME }} | |
git add . | |
git diff-index --quiet HEAD || git commit -m "Build lists" | |
git push -q |