Skip to content

Commit eab8b2d

Browse files
authored
(#PE-16944) Correct Mend project (#397)
1 parent e04d29c commit eab8b2d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/mend.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: "mend"
22

33
on:
44
pull_request:
5+
types:
6+
- closed
57
branches:
68
- "main"
79
schedule:
@@ -10,7 +12,7 @@ on:
1012

1113
jobs:
1214
mend:
13-
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
15+
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged == true && github.ref == 'refs/heads/main')
1416
runs-on: "ubuntu-latest"
1517

1618
steps:
@@ -41,5 +43,5 @@ jobs:
4143
WS_APIKEY: ${{ secrets.MEND_API_KEY }}
4244
WS_WSS_URL: https://saas-eu.whitesourcesoftware.com/agent
4345
WS_USERKEY: ${{ secrets.MEND_TOKEN }}
44-
WS_PRODUCTNAME: "Puppet Enterprise"
46+
WS_PRODUCTNAME: InsTalleR
4547
WS_PROJECTNAME: ${{ github.event.repository.name }}

0 commit comments

Comments
 (0)