Sunshine/.github/workflows/autoupdate.yml

52 lines
1.7 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-12 20:04:06 -05:00
# This workflow is designed to work with the following workflows:
# - automerge
# - autoupdate-labeler
2022-08-07 23:33:19 +00:00
2022-12-31 22:38:46 -05:00
# It uses an action that auto-updates pull requests branches, when changes are pushed to their destination branch.
2022-08-07 23:33:19 +00:00
# Auto-updating to the latest destination branch works only in the context of upstream repo and not forks.
2023-01-22 17:13:33 -05:00
# Dependabot PRs are updated by an action that comments `@depdenabot rebase` on dependabot PRs. (disabled)
2022-08-07 23:33:19 +00:00
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"
2023-01-22 17:13:33 -05:00
# Disabled due to:
# - no major version tag, resulting in constant nagging to update this action
# - additionally, the code is sketchy, 16k+ lines of code?
# https://github.com/bbeesley/gha-auto-dependabot-rebase/blob/main/dist/main.cjs
#
# dependabot-rebase:
# name: Dependabot Rebase
# if: >-
# startsWith(github.repository, 'LizardByte/')
# runs-on: ubuntu-latest
# steps:
# - name: rebase
# uses: "bbeesley/gha-auto-dependabot-rebase@v1.3.18"
# env:
# GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }}