ci: update global workflows (#661)

This commit is contained in:
LizardByte-bot
2022-12-31 22:38:46 -05:00
committed by GitHub
parent a5213c6225
commit 17cd230c55
8 changed files with 29 additions and 12 deletions

View File

@@ -7,8 +7,9 @@
# - automerge
# - autoupdate-labeler
# It uses GitHub Action that auto-updates pull requests branches, when changes are pushed to their destination branch.
# It uses an 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.
# Dependabot PRs are updated by an action that comments `@depdenabot rebase` on dependabot PRs.
name: autoupdate
@@ -39,14 +40,7 @@ jobs:
startsWith(github.repository, 'LizardByte/')
runs-on: ubuntu-latest
steps:
- name: check labels
id: label
run: |
echo "central_dep=${{ contains(github.event.pull_request.labels.*.name, 'central_dependency') }}" \
>> $GITHUB_OUTPUT
- name: rebase
if: ${{ steps.label.outputs.central_dep == 'false' }}
uses: "bbeesley/gha-auto-dependabot-rebase@v1.2.0"
env:
GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }}