chore: add Ivan Garcia to Ambassador Program #1680
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
on: | |
pull_request_target: | |
types: | |
- opened | |
- synchronize | |
jobs: | |
autoapprove-for-bot: | |
name: Autoapprove PR comming from a bot | |
if: > | |
contains(fromJson('["asyncapi-bot", "dependabot[bot]", "dependabot-preview[bot]"]'), github.event.pull_request.user.login) && | |
contains(fromJson('["asyncapi-bot", "dependabot[bot]", "dependabot-preview[bot]"]'), github.actor) && | |
!contains(github.event.pull_request.labels.*.name, 'released') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Autoapproving | |
uses: hmarr/auto-approve-action@v2 | |
with: | |
github-token: "${{ secrets.GH_TOKEN_BOT_EVE }}" | |
- name: Label autoapproved | |
uses: actions/github-script@v5 | |
with: | |
github-token: ${{ secrets.GH_TOKEN }} | |
script: | | |
github.rest.issues.addLabels({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
labels: ['autoapproved', 'autoupdate'] | |
}) | |
automerge-for-bot: | |
name: Automerge PR autoapproved by a bot | |
needs: [autoapprove-for-bot] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Automerging | |
uses: pascalgn/[email protected] | |
env: | |
GITHUB_TOKEN: "${{ secrets.GH_TOKEN }}" | |
GITHUB_LOGIN: asyncapi-bot | |
MERGE_LABELS: "" | |
MERGE_METHOD: "squash" | |
MERGE_COMMIT_MESSAGE: "{pullRequest.title} (#{pullRequest.number})" | |
MERGE_RETRIES: "20" | |
MERGE_RETRY_SLEEP: "30000" |