Skip to content

Commit e04d29c

Browse files
authored
(PE-36944) Changing when when CI mend will be triggered/executed (#396)
1 parent 99f1a35 commit e04d29c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/mend.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,11 @@ on:
99
workflow_dispatch:
1010

1111
jobs:
12-
1312
mend:
14-
if: github.event.pull_request.head.repo.full_name == github.repository
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
1514
runs-on: "ubuntu-latest"
1615

1716
steps:
18-
1917
- name: "checkout"
2018
uses: "actions/checkout@v3"
2119
with:
@@ -44,4 +42,4 @@ jobs:
4442
WS_WSS_URL: https://saas-eu.whitesourcesoftware.com/agent
4543
WS_USERKEY: ${{ secrets.MEND_TOKEN }}
4644
WS_PRODUCTNAME: "Puppet Enterprise"
47-
WS_PROJECTNAME: ${{ github.event.repository.name }}
45+
WS_PROJECTNAME: ${{ github.event.repository.name }}

0 commit comments

Comments
 (0)