generated from fregante/browser-extension-template
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (26 loc) · 913 Bytes
/
template-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
# This is a GitHub Actions workflow for cleaning up resources in the original template. When users create
# a new repository from the template, the workflow deletes and edits files and push a commit.
#
# There is no straightforward way to exclude files when a template is used, so this is a workaround for it.
# https://github.community/t/can-you-ignore-files-folders-when-making-a-repo-from-a-template/3279
name: Template cleanup
on:
push:
branches:
- main
permissions:
contents: write
jobs:
cleanup:
runs-on: ubuntu-latest
if: github.event.repository.name != 'browser-extension-template'
steps:
- uses: actions/checkout@v4
- name: Cleanup
run: |
rm -f \
.github/funding.yml \
.github/workflows/template-cleanup.yml
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Template cleanup