-
-
Notifications
You must be signed in to change notification settings - Fork 20
37 lines (32 loc) · 1018 Bytes
/
repository-generated.yml
File metadata and controls
37 lines (32 loc) · 1018 Bytes
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
name: Repository Generated
on:
push:
branches:
- main
jobs:
setup:
runs-on: ubuntu-latest
if: ${{ !github.event.repository.is_template }}
permissions:
issues: write
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Create issue from setup checklist template
uses: peter-evans/create-issue-from-file@v6
with:
title: Setup Checklist
content-filepath: _template/setup-checklist.md
assignees: ${{ github.repository_owner }}
- name: Delete self
run: rm -rf .github/workflows/repository-generated.yml
- name: Remove template directory
run: rm -rf _template
- name: Commit changes
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Remove template files"
git push