2023-07-28 08:43:31 +01:00
|
|
|
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
|
2023-09-01 08:50:06 +01:00
|
|
|
fetch-depth: 0
|
|
|
|
fetch-tags: true
|
2023-07-28 08:43:31 +01:00
|
|
|
|
|
|
|
- name: Update submodule
|
|
|
|
run: git submodule update --recursive --remote
|
2023-08-05 09:34:11 +01:00
|
|
|
|
|
|
|
- name: Update lune.COMMIT
|
2023-08-05 10:08:38 +01:00
|
|
|
run: git rev-parse HEAD | cut -c -7 > ../lune.COMMIT
|
|
|
|
working-directory: "lune-src"
|
2023-08-31 17:30:00 +01:00
|
|
|
|
|
|
|
- name: Update lune.VERSION
|
2023-09-01 08:50:06 +01:00
|
|
|
run: git describe --tags --abbrev=0 > ../lune.VERSION
|
2023-08-31 17:30:00 +01:00
|
|
|
working-directory: "lune-src"
|
2023-07-28 08:43:31 +01:00
|
|
|
|
|
|
|
- name: Push changes
|
|
|
|
run: |-
|
|
|
|
git diff
|
|
|
|
git config --global user.email "hi@devcomp.xyz"
|
|
|
|
git config --global user.name "CI"
|
2023-07-30 07:50:58 +01:00
|
|
|
git diff --quiet || (git add -u && git commit -m "chore: update lune sources")
|
2023-07-28 08:43:31 +01:00
|
|
|
git push
|
|
|
|
|