Skip to content

Commit

Permalink
ci: update global workflows (#702)
Browse files Browse the repository at this point in the history
  • Loading branch information
asyncapi-bot authored Jan 27, 2022
1 parent f32421e commit a85e3c1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
Expand All @@ -39,8 +38,7 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['autoapproved']
})
})
automerge:
needs: [autoapprove]
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/autoupdate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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"
Expand Down

0 comments on commit a85e3c1

Please sign in to comment.