Skip to content

Commit

Permalink
Update libspm-update.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
PKD667 authored Jul 24, 2024
1 parent bc75d7e commit eeee040
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/libspm-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
branch: "update-submodule"

0 comments on commit eeee040

Please sign in to comment.