From 61b7b2caed71745015ecbac9a24b67398014f340 Mon Sep 17 00:00:00 2001 From: plastikfan Date: Mon, 29 Apr 2024 12:16:33 +0100 Subject: [PATCH] fix(chore): revert repository_dispatch, add git fetch --- .github/workflows/auto-check-workflow.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-check-workflow.yml b/.github/workflows/auto-check-workflow.yml index ab88c6f..d4659e0 100644 --- a/.github/workflows/auto-check-workflow.yml +++ b/.github/workflows/auto-check-workflow.yml @@ -1,7 +1,8 @@ name: Initialise Repo on: - repository_dispatch: - types: [created] + create: + branches: + - main permissions: contents: write @@ -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 }}