-
-
Notifications
You must be signed in to change notification settings - Fork 6
32 lines (30 loc) · 907 Bytes
/
setup.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
name: setup repo
on:
create:
workflow_dispatch:
jobs:
setup:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Git
run: |
git config --global user.name "Mayank Chaudhari<https://mayank-chaudhari.vercel.app>"
git config --global user.email "[email protected]"
git fetch
git checkout main
- name: Set up repo
run: |
git rm .tkb
mv ./scripts/.tkb ./.tkb
rm -rf ./docs
- name: Push changes back to repo
run: |
git add .
git commit -m 'Craete rebrand config 💖 <a href="https://mayank-chaudhari.vercel.app" target="_blank">Mayank Kumar Chaudhari</a> [skip ci]'
git push origin main