Sunshine/.github/workflows/autoupdate.yml

47 lines
1.5 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.
2022-12-13 01:04:06 +00:00
# This workflow is designed to work with the following workflows:
# - automerge
# - autoupdate-labeler
2022-08-07 23:33:19 +00:00
# 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 15:27:26 +00: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 15:27:26 +00: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 15:27:26 +00:00
PR_READY_STATE: "all"
MERGE_CONFLICT_ACTION: "fail"
dependabot-rebase:
name: Dependabot Rebase
2022-12-13 01:04:06 +00:00
if: >-
startsWith(github.repository, 'LizardByte/') &&
contains(github.event.pull_request.labels.*.name, 'central_dependency') == false
2022-12-10 15:27:26 +00:00
runs-on: ubuntu-latest
steps:
- name: rebase
uses: "bbeesley/gha-auto-dependabot-rebase@v1.2.0"
env:
GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }}