Skip to content

Commit

Permalink
Update submodule-sync.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Feb 26, 2022
1 parent ed90466 commit 2f3f143
Showing 1 changed file with 9 additions and 20 deletions.
29 changes: 9 additions & 20 deletions .github/workflows/submodule-sync.yml
Expand Up @@ -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
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
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3.12.1
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 }}

0 comments on commit 2f3f143

Please sign in to comment.