Skip to content

Parked check

Parked check #38

Workflow file for this run

name: Parked check
run-name: Parked check
on:
workflow_dispatch:
workflow_call:
inputs:
called:
type: boolean
default: true
schedule:
- cron: '0 1 * * *'
permissions:
contents: write
jobs:
parked-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: main
- name: parked.sh
run: bash parked.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 "Remove parked domains"
git push -q
build:
# Only trigger if not called from another workflow
if: ${{ ! inputs.called }}
needs: parked-check
uses: ./.github/workflows/build.yml