Update submodule-sync.yml
This commit is contained in:
parent
ed90466495
commit
2f3f1438bb
29
.github/workflows/submodule-sync.yml
vendored
29
.github/workflows/submodule-sync.yml
vendored
@ -17,24 +17,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git pull --recurse-submodules
|
git pull --recurse-submodules
|
||||||
git submodule update --remote --recursive
|
git submodule update --remote --recursive
|
||||||
|
|
||||||
- name: Verify Changed files
|
- name: Create Pull Request
|
||||||
uses: tj-actions/verify-changed-files@v8.8
|
uses: peter-evans/create-pull-request@v3.12.1
|
||||||
id: verify-changed-files
|
|
||||||
with:
|
with:
|
||||||
files: |
|
base: ${{ github.ref }}
|
||||||
tests/demo
|
title: "Updated submodule"
|
||||||
|
branch: "chore/update-submodule"
|
||||||
- name: Commit changes
|
commit-message: "Updated submodule"
|
||||||
if: steps.verify-changed-files.outputs.files_changed == 'true'
|
body: "Updated submodule"
|
||||||
run: |
|
token: ${{ secrets.PAT_TOKEN }}
|
||||||
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
|
||||||
git config --local user.name "github-actions[bot]"
|
|
||||||
git add ${{ steps.verify-changed-files.outputs.changed_files }}
|
|
||||||
git commit -m "Updated submodule."
|
|
||||||
|
|
||||||
- name: Push changes
|
|
||||||
if: steps.verify-changed-files.outputs.files_changed == 'true'
|
|
||||||
uses: ad-m/github-push-action@master
|
|
||||||
with:
|
|
||||||
github_token: ${{ secrets.PAT_TOKEN }}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user