From eeee040f5d813b8b51152f332da67ea3d74cb610 Mon Sep 17 00:00:00 2001 From: pkd Date: Wed, 24 Jul 2024 02:38:11 +0200 Subject: [PATCH] Update libspm-update.yml --- .github/workflows/libspm-update.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/libspm-update.yml b/.github/workflows/libspm-update.yml index 4e57f38..f22efda 100644 --- a/.github/workflows/libspm-update.yml +++ b/.github/workflows/libspm-update.yml @@ -13,25 +13,32 @@ jobs: - name: Checkout parent repo uses: actions/checkout@v2 with: - repository: 'Soviet-Linux/libspm' + submodules: true # Ensure submodules are checked out token: ${{ secrets.GITHUB_TOKEN }} - - name: Update submodule + - name: Configure Git run: | - git submodule update --remote --merge git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "github-actions[bot]" - - name: Create new branch and commit changes + - name: Update submodule run: | + set -x # Enable debug logging git checkout -b update-submodule + git submodule update --remote --merge git add . git commit -m "Update submodule to latest commit" + - name: Push changes + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + git push origin update-submodule + - name: Create Pull Request uses: peter-evans/create-pull-request@v3 with: token: ${{ secrets.GITHUB_TOKEN }} title: "Update submodule" body: "This PR updates the submodule to the latest commit." - branch: "update-submodule" \ No newline at end of file + branch: "update-submodule"