diff --git a/.github/workflows/submodule-sync.yml b/.github/workflows/submodule-sync.yml index 52384cce..f2deb6ac 100644 --- a/.github/workflows/submodule-sync.yml +++ b/.github/workflows/submodule-sync.yml @@ -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 }}