Skip to content

Commit

Permalink
ci: update global workflows (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
asyncapi-bot authored Jan 14, 2022
1 parent 2bb4d85 commit 9ba5e5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/add-good-first-issue-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
add-labels:
if: github.event.issue && github.event.issue.state != 'closed'
if: ${{!github.event.issue.pull_request && github.event.issue.state != 'closed' && github.actor != 'asyncapi-bot'}}
runs-on: ubuntu-latest
steps:
- name: Add label
Expand All @@ -32,7 +32,7 @@ jobs:
values[1] = 'docs';
}
if(values.length != 2 || !areas.includes(values[1])){
const message = `Hey @${context.payload.sender.login}, something is wrong with your command please use \`/help\` for help.`
const message = `Hey @${context.payload.sender.login}, your message doesn't follow the requirements, you can try \`/help\`.`
await github.rest.issues.createComment({
issue_number: context.issue.number,
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/help-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
create_help_comment_pr:
if: github.event.issue.pull_request && contains(github.event.comment.body, '/help')
if: github.event.issue.pull_request && contains(github.event.comment.body, '/help' && github.actor != 'asyncapi-bot')
runs-on: ubuntu-latest
steps:
- uses: actions-ecosystem/action-create-comment@v1
Expand All @@ -26,7 +26,7 @@ jobs:
- `/ready-to-merge` or `/rtm` - This comment will trigger automerge of PR in case all required checks are green, approvals in place and do-not-merge label is not added
- `/do-not-merge` or `/dnm` - This comment will block automerging even if all conditions are met and ready-to-merge label is added
create_help_comment_issue:
if: ${{ !github.event.issue.pull_request && contains(github.event.comment.body, '/help') }}
if: ${{ !github.event.issue.pull_request && contains(github.event.comment.body, '/help') && github.actor != 'asyncapi-bot'}}
runs-on: ubuntu-latest
steps:
- uses: actions-ecosystem/action-create-comment@v1
Expand Down

0 comments on commit 9ba5e5a

Please sign in to comment.