Skip to content
This repository was archived by the owner on Feb 12, 2025. It is now read-only.

Commit 199fbf9

Browse files
ci: Cleanup GitHub Actions workflows (#14)
1 parent ebfadd7 commit 199fbf9

File tree

3 files changed

+44
-3
lines changed

3 files changed

+44
-3
lines changed

.github/workflows/automerge-release-pr-bump.yml renamed to .github/workflows/automerge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
steps:
2727
- name: Autoapproving
2828
uses: hmarr/[email protected]
29-
if: github.actor == 'asyncapi-bot'
29+
if: github.actor == 'asyncapi-bot' || github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
3030
with:
3131
github-token: "${{ secrets.GITHUB_TOKEN }}"
3232

@@ -36,7 +36,7 @@ jobs:
3636
steps:
3737
- name: Automerging
3838
uses: pascalgn/[email protected]
39-
if: github.actor == 'asyncapi-bot'
39+
if: github.actor == 'asyncapi-bot' || github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
4040
env:
4141
GITHUB_TOKEN: "${{ secrets.GH_TOKEN }}"
4242
GITHUB_LOGIN: asyncapi-bot
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: 'Sentiment Analysis'
2+
3+
on:
4+
issue_comment:
5+
types:
6+
- created
7+
- edited
8+
issues:
9+
types:
10+
- opened
11+
- edited
12+
pull_request:
13+
types:
14+
- opened
15+
- edited
16+
pull_request_review:
17+
types:
18+
- submitted
19+
- edited
20+
pull_request_review_comment:
21+
types:
22+
- created
23+
- edited
24+
jobs:
25+
test:
26+
name: Checking sentiments
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v2
30+
- name: Check sentiment
31+
uses: derberg/code-of-conduct-sentiment-analysis-github-action@v1
32+
id: sentiments
33+
with:
34+
gcp_key: ${{ secrets.GCP_KEY_SENTIMENT }}
35+
- uses: someimportantcompany/github-actions-slack-message@v1
36+
# this step runs only if sentiment is a negative number
37+
if: steps.sentiments.outputs.sentiment < -0.2
38+
with:
39+
webhook-url: ${{ secrets.SLACK_SENTIMENTS }}
40+
text: Here ${{steps.sentiments.outputs.source}} you can find a potential negative text that requires your attention as the sentiment analysis score is ${{steps.sentiments.outputs.sentiment}}
41+
color: orange

.github/workflows/welcome-first-time-contrib.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Welcome first time contributors
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types:
66
- opened
77
issues:

0 commit comments

Comments
 (0)