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: |
|
||||
git pull --recurse-submodules
|
||||
git submodule update --remote --recursive
|
||||
|
||||
- name: Verify Changed files
|
||||
uses: tj-actions/verify-changed-files@v8.8
|
||||
id: verify-changed-files
|
||||
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v3.12.1
|
||||
with:
|
||||
files: |
|
||||
tests/demo
|
||||
|
||||
- name: Commit changes
|
||||
if: steps.verify-changed-files.outputs.files_changed == 'true'
|
||||
run: |
|
||||
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 }}
|
||||
base: ${{ github.ref }}
|
||||
title: "Updated submodule"
|
||||
branch: "chore/update-submodule"
|
||||
commit-message: "Updated submodule"
|
||||
body: "Updated submodule"
|
||||
token: ${{ secrets.PAT_TOKEN }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user