Skip to content

Commit cbc6c41

Browse files
committed
ci: update WELCOME-NEW-USERS workflow from global .github repo
Signed-off-by: microcks-bot <info@microcks.io>
1 parent 2f95521 commit cbc6c41

File tree

1 file changed

+36
-24
lines changed

1 file changed

+36
-24
lines changed

β€Ž.github/workflows/welcome-new-users.ymlβ€Ž

Lines changed: 36 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,25 @@
44
# Props to https://github.com/wow-actions/welcome
55

66
name: Welcome New Users with Thanks and Tip non-stargazers ;-)
7+
78
on:
8-
pull_request_target:
9-
types: [opened, closed]
109
issues:
1110
types: [opened]
12-
permissions:
13-
contents: read # Set permissions as read-only by default at the top level
11+
pull_request:
12+
types: [opened, closed]
13+
14+
permissions: {}
15+
1416
jobs:
15-
run:
16-
permissions:
17-
issues: write # for wow-actions/welcome to comment on issues
18-
pull-requests: write # wow-actions/welcome to comment on PRs
17+
welcome-issue:
18+
if: github.event_name == 'issues'
1919
runs-on: ubuntu-latest
20+
permissions:
21+
issues: write
2022
steps:
2123
- uses: wow-actions/welcome@68019c2c271561f63162fea75bb7707ef8a02c85 # To pin v1.3.1
2224
with:
23-
# GitHub token as default GITHUB_TOKEN
24-
25-
FIRST_ISSUE_REACTIONS: '+1, hooray, rocket, heart'
26-
25+
FIRST_ISSUE_REACTIONS: "+1, hooray, rocket, heart"
2726
FIRST_ISSUE: |
2827
πŸ‘‹ @{{ author }}
2928
@@ -36,9 +35,22 @@ jobs:
3635
If you need to know why and how to add yourself to the list, please read the blog post ["Join the Microcks Adopters list and Empower the vibrant open source Community πŸ™Œ"](https://microcks.io/blog/join-adopters-list/)
3736
3837
Hope you have a great time there!
39-
40-
FIRST_PR_REACTIONS: '+1, hooray, rocket, heart'
41-
38+
STAR_MESSAGE: |
39+
🌟 ~~~~~~~~~ 🌟
40+
41+
πŸ“’ If you like Microcks, please ⭐ star ⭐ our repo to support it!
42+
43+
πŸ™ It really helps the project to gain momentum and credibility. It's a small contribution back to the project with a big impact.
44+
45+
welcome-pr-opened:
46+
if: github.event_name == 'pull_request' && github.event.action == 'opened'
47+
runs-on: ubuntu-latest
48+
permissions:
49+
pull-requests: write
50+
steps:
51+
- uses: wow-actions/welcome@68019c2c271561f63162fea75bb7707ef8a02c85 # To pin v1.3.1
52+
with:
53+
FIRST_PR_REACTIONS: "+1, hooray, rocket, heart"
4254
FIRST_PR: |
4355
πŸ‘‹ @{{ author }}
4456
@@ -47,7 +59,15 @@ jobs:
4759
Thanks and congrats πŸŽ‰ for opening your first pull request here! Be sure to follow the pull request template or please update it accordingly.
4860
4961
Hope you have a great time there!
50-
62+
63+
welcome-pr-merged:
64+
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
65+
runs-on: ubuntu-latest
66+
permissions:
67+
pull-requests: write
68+
steps:
69+
- uses: wow-actions/welcome@68019c2c271561f63162fea75bb7707ef8a02c85 # To pin v1.3.1
70+
with:
5171
FIRST_PR_MERGED: |
5272
πŸŽ‰ @{{ author }}
5373
@@ -60,11 +80,3 @@ jobs:
6080
If you need to know why and how to add yourself to the list, please read the blog post ["Join the Microcks Adopters list and Empower the vibrant open source Community πŸ™Œ"](https://microcks.io/blog/join-adopters-list/)
6181
6282
Kudos and please keep going, we need you πŸ™Œ
63-
64-
STAR_MESSAGE: |
65-
🌟 ~~~~~~~~~ 🌟
66-
67-
πŸ“’ If you like Microcks, please ⭐ star ⭐ our repo to support it!
68-
69-
πŸ™ It really helps the project to gain momentum and credibility. It's a small contribution back to the project with a big impact.
70-

0 commit comments

Comments
Β (0)