Sunshine/.github/workflows/autoupdate.yml

44 lines
1.4 KiB
YAML
Raw Normal View History

2022-08-07 23:33:19 +00:00
---
# This action is centrally managed in https://github.com/<organization>/.github/
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in
# the above-mentioned repo.
# This workflow is designed to work with:
# - automerge workflows
# It uses GitHub Action that auto-updates pull requests branches, when changes are pushed to their destination branch.
# Auto-updating to the latest destination branch works only in the context of upstream repo and not forks.
name: autoupdate
on:
push:
branches:
- 'nightly'
jobs:
2022-12-10 10:27:26 -05:00
autoupdate:
2022-08-07 23:33:19 +00:00
name: Autoupdate autoapproved PR created in the upstream
if: startsWith(github.repository, 'LizardByte/')
runs-on: ubuntu-latest
steps:
- name: Update
uses: docker://chinthakagodawita/autoupdate-action:v1
env:
2022-12-10 10:27:26 -05:00
EXCLUDED_LABELS: "central_dependency,dependencies"
2022-08-07 23:33:19 +00:00
GITHUB_TOKEN: '${{ secrets.GH_BOT_TOKEN }}'
PR_FILTER: "labelled"
PR_LABELS: "autoupdate"
2022-12-10 10:27:26 -05:00
PR_READY_STATE: "all"
MERGE_CONFLICT_ACTION: "fail"
dependabot-rebase:
name: Dependabot Rebase
if: startsWith(github.repository, 'LizardByte/')
runs-on: ubuntu-latest
steps:
- name: rebase
uses: "bbeesley/gha-auto-dependabot-rebase@v1.2.0"
env:
GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }}