-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (31 loc) · 1.14 KB
/
cleanup.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
#
# __ __
# / /____ ___ ____ ___ ___ _/ / This file is provided to you by https://github.com/tegonal/github-commons
# / __/ -_) _ `/ _ \/ _ \/ _ `/ / It is licensed under Creative Commons Zero v1.0 Universal
# \__/\__/\_, /\___/_//_/\_,_/_/ Please report bugs and contribute back your improvements
# /___/
# Version: v1.0.0
#
###################################
name: Cleanup
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cleanup Sources
run: ./scripts/cleanup-on-push-to-main.sh
- name: Create Pull Request if necessary
uses: peter-evans/create-pull-request@v5
with:
branch: auto-cleanup
title: Auto Cleanup
commit-message: auto cleanup sources
body: Looks like someone forgot to run ./scripts/cleanup-on-push-to-main.sh before committing. I did it for them :)
delete-branch: true
token: ${{ secrets.AUTO_PR_TOKEN }}
push-to-fork: ${{ secrets.AUTO_PR_FORK_NAME }}