diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 5fa89d2..3011800 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -36,20 +36,20 @@ jobs: - uses: actions/checkout@v4 with: submodules: recursive + token: ${{ secrets.WORKFLOW_TOKEN }} - name: Update submodules - id: update run: git submodule update --remote --init - name: Add and Commit files run: | + git diff git add . - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" + git config --local user.email "actions@github.com" + git config --local user.name "GitHub Actions" git commit -m "Update submodules at $(date "+DATE: %Y-%m-%d TIME: %H:%M:%S")" - name: Push changes - uses: ad-m/github-push-action@master - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - branch: main + run: | + git pull --rebase + git push origin main # Next.jsのサイトをビルド build: