[NFC] polish .github/workflows/submodule.yml code style (#1822)

This commit is contained in:
shenggan 2022-11-08 15:07:42 +08:00 committed by binmakeswell
parent fc8d8b1b9c
commit b0706fbb00

View File

@ -1,6 +1,6 @@
name: Synchronize Submodule name: Synchronize Submodule
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: "0 0 * * *" - cron: "0 0 * * *"
@ -27,11 +27,11 @@ jobs:
- name: Commit update - name: Commit update
run: | run: |
git config --global user.name 'github-actions' git config --global user.name 'github-actions'
git config --global user.email 'github-actions@github.com' git config --global user.email 'github-actions@github.com'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git commit -am "Automated submodule synchronization" git commit -am "Automated submodule synchronization"
- name: Create Pull Request - name: Create Pull Request
uses: peter-evans/create-pull-request@v3 uses: peter-evans/create-pull-request@v3
with: with:
@ -43,4 +43,3 @@ jobs:
assignees: ${{ github.actor }} assignees: ${{ github.actor }}
delete-branch: true delete-branch: true
branch: create-pull-request/patch-sync-submodule branch: create-pull-request/patch-sync-submodule