-
Notifications
You must be signed in to change notification settings - Fork 33
31 lines (29 loc) · 908 Bytes
/
naughty-prune.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
name: prune naughties
on:
schedule:
- cron: '30 1 * * 0'
# can be run manually on https://github.com/cockpit-project/bots/actions
workflow_dispatch:
jobs:
maintenance:
runs-on: ubuntu-latest
environment: self
permissions:
issues: read
pull-requests: write
statuses: write
steps:
- name: Set up secrets
run: echo '${{ secrets.GITHUB_TOKEN }}' > ~/.config/github-token
- name: Clone repository
uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.DEPLOY_KEY }}
fetch-depth: 0
- name: Run naughty-prune
run: |
git config --global user.name "GitHub Workflow"
git config --global user.email "[email protected]"
mkdir -p ~/.config/cockpit-dev
echo ${{ github.token }} >> ~/.config/cockpit-dev/github-token
./naughty-prune --verbose