Skip to content

Commit

Permalink
add update-template-branch workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuglajbclajep committed Feb 2, 2025
1 parent 2da4931 commit df8c504
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/update-template-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
on:
push:
branches:
- "main"
jobs:
update-template-branch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: echo "sha_short=$(git rev-parse --short @)" >> $GITHUB_ENV
- run: git checkout --orphan template
- run: rm -rf .github/
- run: |
git config user.name ahuglajbclajep
git config user.email ahuglajbclajep@gmail.com
- run: |
git commit -am "initial commit $sha_short"
git push -f origin template
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
A simple React and TypeScript template for VS Code.

```sh
$ git clone -b template git@github.com:ahuglajbclajep/my-react-template.git
$ git clone -b template git@github.com:ahuglajbclajep/my-react-template.git REPOSITORY && cd $_
$ npm i; npm run dev

$ git branch -m main
Expand Down

0 comments on commit df8c504

Please sign in to comment.