Dead domain cleanup #158
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: Dead domain cleanup | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 9 * * *" | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
cleanup: | |
name: Cleanup dead domains 🧹 | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- run: corepack enable | |
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 | |
with: | |
node-version-file: ".nvmrc" | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile --prefer-offline | |
- name: Run cleanup | |
run: pnpm run dead-domains:fix | |
- name: Create Pull Request | |
id: cpr | |
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7 | |
with: | |
commit-message: "fix: remove dead domains" | |
title: "fix: remove dead domains" | |
body: "This is an auto-generated PR to remove dead domains. Review and merge if it looks good." | |
branch: "cleanup/dead-domains" | |
base: main | |
- name: Check outputs | |
if: ${{ steps.cpr.outputs.pull-request-number }} | |
run: | | |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" | |
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" |