mirror of
https://github.com/xivdev/EXDSchema.git
synced 2025-06-05 23:57:46 +00:00
Add applying upstream cron job
This commit is contained in:
parent
cafaed4e30
commit
57184b7146
2 changed files with 60 additions and 2 deletions
54
.github/workflows/apply-downstream.yml
vendored
Normal file
54
.github/workflows/apply-downstream.yml
vendored
Normal file
|
@ -0,0 +1,54 @@
|
|||
name: Apply Downstream Changes
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 * * *' # Every midnight
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: ${{github.workflow}}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
packages: write
|
||||
|
||||
jobs:
|
||||
apply-downstream:
|
||||
name: Apply Downstream
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
submodules: recursive
|
||||
|
||||
- name: Download EXDTools
|
||||
uses: robinraju/release-downloader@v1
|
||||
with:
|
||||
repository: xivdev/EXDTools
|
||||
fileName: 'EXDTooler'
|
||||
latest: true
|
||||
|
||||
- name: Chmod Executable
|
||||
run: chmod +x EXDTooler
|
||||
|
||||
- name: Checkout submodules to branch
|
||||
run: git submodule foreach 'git checkout $(git describe --all HEAD | sed -En "s/(remotes\/origin\/|heads\/)//p")'
|
||||
|
||||
- name: Run Column Merger
|
||||
run: ./EXDTooler merge-columns -b schemas
|
||||
|
||||
- name: Commit Changes
|
||||
run: |
|
||||
rm EXDTooler
|
||||
git config --global user.name github-actions[bot]
|
||||
git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com
|
||||
git submodule foreach '
|
||||
git add .
|
||||
git commit -m "Upstream changes" || :
|
||||
git push
|
||||
'
|
||||
git add --all
|
||||
git commit -m "Update submodules" || :
|
||||
git push
|
8
.github/workflows/create-release.yml
vendored
8
.github/workflows/create-release.yml
vendored
|
@ -52,9 +52,13 @@ jobs:
|
|||
rm apply.py
|
||||
git config --global user.name github-actions[bot]
|
||||
git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com
|
||||
git submodule foreach 'git add .; git commit -m "Creating release"; git push'
|
||||
git submodule foreach '
|
||||
git add .
|
||||
git commit -m "Creating release" || :
|
||||
git push
|
||||
'
|
||||
git add --all
|
||||
git commit -m "Update submodules"
|
||||
git commit -m "Update submodules" || :
|
||||
git push
|
||||
|
||||
- name: Zip submodules
|
||||
|
|
Loading…
Add table
Reference in a new issue