Skip to content

Commit 4bebb6c

Browse files
authored
ci: update global workflows
1 parent 636065b commit 4bebb6c

File tree

2 files changed

+42
-2
lines changed

2 files changed

+42
-2
lines changed

.github/workflows/automerge.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
pull_request_review:
1818
types:
1919
- submitted
20-
20+
2121
jobs:
2222

2323
autoapprove:
@@ -44,4 +44,16 @@ jobs:
4444
MERGE_METHOD: "squash"
4545
MERGE_COMMIT_MESSAGE: "pull-request-title"
4646
MERGE_RETRIES: "20"
47-
MERGE_RETRY_SLEEP: "30000"
47+
MERGE_RETRY_SLEEP: "30000"
48+
49+
labelWhenApproved:
50+
needs: [autoapprove]
51+
name: Label when approved
52+
runs-on: ubuntu-latest
53+
steps:
54+
- name: Label when approved
55+
uses: pullreminders/label-when-approved-action@v1.0.7
56+
env:
57+
APPROVALS: "1"
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
ADD_LABEL: "autoapproved"

.github/workflows/autoupdate.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#This action is centrally managed in https://github.com/asyncapi/.github/
2+
#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
3+
4+
#This workflow is designed to work with:
5+
# - autoapprove and automerge workflows for dependabot and asyncapibot.
6+
# - 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
7+
8+
# It uses GitHub Action that auto-updates pull requests branches, whenever changes are pushed to their destination branch.
9+
#Autoupdating to latest destination branch works only in the context of upstream repo and not forks
10+
11+
name: autoupdate
12+
13+
on:
14+
push: {}
15+
16+
jobs:
17+
18+
autoupdate:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Autoupdating
22+
uses: docker://chinthakagodawita/autoupdate-action:v1
23+
env:
24+
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
25+
PR_FILTER: "labelled"
26+
PR_LABELS: "autoapproved"
27+
PR_READY_STATE: "ready_for_review"
28+
MERGE_CONFLICT_ACTION: "ignore"

0 commit comments

Comments
 (0)