mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-12 21:59:12 +00:00
Automatically merge new changes once a day
This commit is contained in:
parent
221401b3c6
commit
4026898155
3 changed files with 44 additions and 2 deletions
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
|
@ -2,7 +2,6 @@ name: Release job
|
|||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs: {}
|
||||
push:
|
||||
branches: [ stable ]
|
||||
paths-ignore:
|
||||
|
|
|
@ -2,7 +2,6 @@ name: Release staging build
|
|||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs: {}
|
||||
push:
|
||||
branches: [ master ]
|
||||
paths-ignore:
|
44
.github/workflows/update_stable.yml
vendored
Normal file
44
.github/workflows/update_stable.yml
vendored
Normal file
|
@ -0,0 +1,44 @@
|
|||
name: Update stable branch
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
# Daily at 14:20 UTC
|
||||
- cron: "20 14 * * *"
|
||||
|
||||
jobs:
|
||||
update_stable:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
env:
|
||||
GIT_COMMITTER_NAME: "RyujinxBot"
|
||||
GIT_COMMITTER_EMAIL: "61127645+RyujinxBot@users.noreply.github.com"
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
ref: stable
|
||||
fetch-depth: 0
|
||||
token: ${{ secrets.RYUJINX_BOT_PAT }}
|
||||
|
||||
- name: Get version info
|
||||
id: version_info
|
||||
run: |
|
||||
echo "git_hash=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Check for changes
|
||||
id: check
|
||||
run: |
|
||||
echo "no_changes="gh api /repos/$REPO/commits/$COMMIT/branches-where-head --jq 'any(.name == "master")' >> $GITHUB_OUTPUT
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
REPO: ${{ github.repository }}
|
||||
COMMIT: ${{ steps.version_info.outputs.git_hash }}
|
||||
|
||||
- name: Merge changes from master
|
||||
if: steps.check.outputs.no_changes == 'false'
|
||||
run: |
|
||||
git config user.name "${{ env.GIT_COMMITTER_NAME }}"
|
||||
git config user.email "${{ env.GIT_COMMITTER_EMAIL }}"
|
||||
git merge origin/master
|
||||
git push
|
Loading…
Reference in a new issue