actions: update dotfiles on push
This commit is contained in:
parent
b05df92d10
commit
ed810ce145
1 changed files with 37 additions and 0 deletions
37
.github/workflows/submodules.yml
vendored
Normal file
37
.github/workflows/submodules.yml
vendored
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
name: Send submodule updates to parent repo
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
- tiling
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
repository: kada49/.dotfiles
|
||||||
|
ref: ${{ matrix.branch }}
|
||||||
|
token: ${{ secrets.GH_PAT }}
|
||||||
|
submodules: true
|
||||||
|
|
||||||
|
- name: Pull & update submodules recursively
|
||||||
|
run: |
|
||||||
|
git submodule update --init --recursive
|
||||||
|
git submodule update --recursive --remote
|
||||||
|
|
||||||
|
- name: Commit
|
||||||
|
run: |
|
||||||
|
git config user.email "actions@github.com"
|
||||||
|
git config user.name "GitHub Actions"
|
||||||
|
git add --all
|
||||||
|
git commit -m "nvim: update submodule" || echo "No changes to commit"
|
||||||
|
git push
|
Loading…
Add table
Add a link
Reference in a new issue