-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.34 KB
/
dead-domains.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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 }}"