mirror of
https://github.com/CompeyDev/lune-packaging.git
synced 2025-01-08 11:49:10 +00:00
feat(actions): include action for updating setup-lune
action remotes
This commit is contained in:
parent
6551f59a97
commit
6e330aa828
1 changed files with 31 additions and 0 deletions
31
.github/workflows/action_update.yaml
vendored
Normal file
31
.github/workflows/action_update.yaml
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
name: Update setup-lune Repository
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
update:
|
||||
name: Update setup-lune action
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Clone remote
|
||||
run: git clone https://github.com/CompeyDev/setup-lune
|
||||
|
||||
- name: Update sources
|
||||
run: rm -rf ./.git/ && shopt -s dotglob && cp -r package/action/* setup-lune/
|
||||
|
||||
- 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
|
||||
working-directory: "setup-lune"
|
||||
|
Loading…
Reference in a new issue