mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Update submodules automatically at midnight
This commit is contained in:
parent
320ec00108
commit
15015a4257
35
.github/workflows/nightly.yml
vendored
35
.github/workflows/nightly.yml
vendored
@ -6,8 +6,43 @@ on:
|
|||||||
- cron: '0 0 * * *'
|
- cron: '0 0 * * *'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
update:
|
||||||
|
name: Update Submodules
|
||||||
|
if: github.repository_owner == 'hyperion-project'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
fetch-depth: 0
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Update submodules
|
||||||
|
id: update
|
||||||
|
run: git submodule update --remote --recursive
|
||||||
|
|
||||||
|
- name: Check git status
|
||||||
|
id: status
|
||||||
|
run: echo "::set-output name=status::$(git status -s)"
|
||||||
|
|
||||||
|
- name: Add and commit changes
|
||||||
|
if: ${{ steps.status.outputs.status }}
|
||||||
|
run: |
|
||||||
|
git config --local user.email "20935312+Hyperion-Bot@users.noreply.github.com"
|
||||||
|
git config --local user.name "Hyperion-Bot"
|
||||||
|
git config --local diff.ignoreSubmodules dirty
|
||||||
|
git commit -am "Update submodules"
|
||||||
|
|
||||||
|
- name: Push changes
|
||||||
|
if: ${{ steps.status.outputs.status }}
|
||||||
|
uses: ad-m/github-push-action@master
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.HYPERION_BOT_TOKEN }}
|
||||||
|
branch: ${{ github.ref }}
|
||||||
|
|
||||||
check:
|
check:
|
||||||
name: Compare local <-> nightly
|
name: Compare local <-> nightly
|
||||||
|
needs: [update]
|
||||||
if: github.repository_owner == 'hyperion-project'
|
if: github.repository_owner == 'hyperion-project'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
Loading…
Reference in New Issue
Block a user