new CI #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Submodule | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout parent repo | |
uses: actions/checkout@v2 | |
with: | |
repository: 'Soviet-Linux/libspm' | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Update submodule | |
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 | |
run: | | |
git checkout -b update-submodule | |
git add . | |
git commit -m "Update submodule to latest commit" | |
- 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" |