From 2a0197a8c27b74006f0967419838ecc76ea8faf0 Mon Sep 17 00:00:00 2001 From: asyncapi-bot <61865014+asyncapi-bot@users.noreply.github.com> Date: Thu, 27 Jan 2022 10:54:36 +0100 Subject: [PATCH] ci: update global workflows (#19) --- .github/workflows/automerge.yml | 10 ++++------ .github/workflows/autoupdate.yml | 14 +++++++++----- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml index 161e89a..393e12f 100644 --- a/.github/workflows/automerge.yml +++ b/.github/workflows/automerge.yml @@ -1,5 +1,5 @@ - # This action is centrally managed in https://github.com/asyncapi/.github/ - # Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in above mentioned repo. +# This action is centrally managed in https://github.com/asyncapi/.github/ +# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in above mentioned repo. name: Automerge release bump PR @@ -19,9 +19,8 @@ on: - submitted jobs: - autoapprove: - if: github.event.pull_request.draft == false && (github.event.pull_request.user.login == 'asyncapi-bot' || github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'dependabot-preview[bot]') && !contains(github.event.pull_request.labels.*.name, 'released') + if: github.event.pull_request.draft == false && (github.actor == 'asyncapi-bot' || github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]') && !contains(github.event.pull_request.labels.*.name, 'released') runs-on: ubuntu-latest steps: - name: Autoapproving @@ -39,8 +38,7 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, labels: ['autoapproved'] - }) - + }) automerge: needs: [autoapprove] diff --git a/.github/workflows/autoupdate.yml b/.github/workflows/autoupdate.yml index d147580..b8faa42 100644 --- a/.github/workflows/autoupdate.yml +++ b/.github/workflows/autoupdate.yml @@ -2,7 +2,7 @@ #Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in above mentioned repo #This workflow is designed to work with: -# - autoapprove and automerge workflows for dependabot and asyncapibot. +# - autoapprove and automerge workflows for dependabot and asyncapibot. # - special release branches that we from time to time create in upstream repos. If we open up PRs for them from the very beginning of the release, the release branch will constantly update with new things from the destination branch they are opened against # It uses GitHub Action that auto-updates pull requests branches, whenever changes are pushed to their destination branch. @@ -11,17 +11,21 @@ name: autoupdate on: - push: {} - -jobs: + push: + branches-ignore: + - 'version-bump/**' + - 'dependabot/**' + - 'bot/**' + - 'all-contributors/**' +jobs: autoupdate: runs-on: ubuntu-latest steps: - name: Autoupdating uses: docker://chinthakagodawita/autoupdate-action:v1 env: - GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' + GITHUB_TOKEN: '${{ secrets.GH_TOKEN }}' PR_FILTER: "labelled" PR_LABELS: "autoapproved" PR_READY_STATE: "ready_for_review"