Skip to content

Commit

Permalink
🚑💚 ActionsでのSubmodule更新を調整
Browse files Browse the repository at this point in the history
  • Loading branch information
yamaji committed Nov 12, 2024
1 parent 1672993 commit eb5d2d1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit eb5d2d1

Please sign in to comment.