Skip to content

Commit

Permalink
fix(chore): revert repository_dispatch, add git fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
plastikfan committed Apr 29, 2024
1 parent 122df18 commit fcf78de
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/auto-check-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Initialise Repo
on:
repository_dispatch:
types: [created]
create:
branches:
- main

permissions:
contents: write
Expand Down Expand Up @@ -53,6 +54,8 @@ jobs:
git branch | cat
echo "default branch: '${{ github.event.repository.default_branch }}'"
echo "========"
git fetch
git checkout main
git add .
git commit -m "chore(gh-actions): apply auto-check edits"
git push -u origin ${{ github.event.repository.default_branch }}
Expand Down

0 comments on commit fcf78de

Please sign in to comment.