mirror of
https://github.com/CompeyDev/lune-packaging.git
synced 2025-01-09 12:19:09 +00:00
chore(actions): new action for updatin lune-src
submodule
This commit is contained in:
parent
9aef7400ad
commit
bfbca4d4f3
1 changed files with 29 additions and 0 deletions
29
.github/workflows/update.yaml
vendored
Normal file
29
.github/workflows/update.yaml
vendored
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
name: Update Lune Sources
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * *'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update:
|
||||||
|
name: Update the lune-src submodule
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
|
||||||
|
- name: Update submodule
|
||||||
|
run: git submodule update --recursive --remote
|
||||||
|
|
||||||
|
- name: Push changes
|
||||||
|
run: |-
|
||||||
|
git diff
|
||||||
|
git config --global user.email "hi@devcomp.xyz"
|
||||||
|
git config --global user.name "CI"
|
||||||
|
git diff --quiet || (git add -u && git commit -m "chore\: update lune sources")
|
||||||
|
git push
|
||||||
|
|
Loading…
Reference in a new issue