generated from creek-service/aggregate-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 1.13 KB
/
bootstrap.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
37
# A GitHub workflow that runs when the source template repository is used to create a new repository.
# The workflow runs on the new repository, updating the repository code to the new owner and repository name,
# Once the workflow has run, this workflow file can be deleted as it serves no further purpose.
name: Bootstrap
on:
push:
branches: [ main ]
permissions:
contents: read
jobs:
boostrap:
if: ${{ github.run_number == 1 }}
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install zsh
run: sudo apt install zsh
- name: Run script
shell: zsh {0}
run: |
./.creek/bootstrap.sh "${{ github.repository }}" "${{ github.repository_owner }}"
- name: Commit changes
run: |
git config --global user.email "[email protected]"
git config --global user.name "Creek Bot"
echo "adding files"
git add -A
echo "status"
git status
git commit -m "Bootstrap repo"
git push