Update submodule-sync.yml

This commit is contained in:
Tonye Jack 2022-02-26 04:41:54 -05:00 committed by GitHub
parent ed90466495
commit 2f3f1438bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 }}