Fix update submodules action (#868)
* Fix update submodules action * Small fix
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
name: Update submodules
|
name: Update submodules
|
||||||
|
|
||||||
on:
|
on: workflow_dispatch
|
||||||
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
@@ -10,16 +8,20 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
token: ${{ secrets.PUSH_TOKEN }}
|
||||||
|
|
||||||
- name: Update submodules recursively
|
- name: Update submodules recursively
|
||||||
run: git submodule update --recursive --remote
|
run: |
|
||||||
|
git submodule update --init --recursive
|
||||||
|
git submodule update --recursive --remote
|
||||||
|
|
||||||
- name: Commit & push changes
|
- name: Commit & push changes
|
||||||
uses: EndBug/add-and-commit@v8
|
run: |
|
||||||
with:
|
git config --global user.name 'github-actions[bot]'
|
||||||
author_name: github-actions[bot]
|
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
|
||||||
author_email: github-actions[bot]@users.noreply.github.com
|
git add --all
|
||||||
message: Update submodules
|
git commit -m 'Update submodules' || echo 'No changes to commit'
|
||||||
|
git push
|
||||||
|
|||||||
Reference in New Issue
Block a user