-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (28 loc) · 899 Bytes
/
create.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
name: Create
on: workflow_call
permissions:
contents: write
jobs:
create:
if: github.event.repository.is_template == false
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4.2.1
with:
show-progress: false
- name: Remove unnecessary workflow files
run: rm .github/workflows/create.yml
- name: Rename README title
env:
REPOSITORY_NAME: ${{ github.event.repository.name }}
run: sed -i "1s/.*/# $REPOSITORY_NAME/" README.md
- name: Set Git config
run: |
git config user.email github-actions[bot]@users.noreply.github.com
git config user.name github-actions[bot]
- name: Reword initial commit
run: |
git add .
git commit --amend -m "chore: initialise repository"
git push --force-with-lease