File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 4
4
schedule :
5
5
- cron : " 0 13 * * 1"
6
6
7
- workflow_dispatch : # Allow manual triggering from the Actions tab
7
+ # Allow manual triggering from the Actions tab
8
+ workflow_dispatch :
9
+
10
+ # Run when a pull request is opened to verify.
11
+ pull_request :
12
+ types : [opened, synchronize]
8
13
9
14
# Jobs to be executed
10
15
jobs :
@@ -36,11 +41,16 @@ jobs:
36
41
37
42
# Commit any changes to the collection
38
43
- uses : stefanzweifel/git-auto-commit-action@v5
44
+ if : github.event_name != 'pull_request'
39
45
env :
40
46
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41
47
with :
42
- commit_message : Update Postman Collection
48
+ commit_message : ' ci: Update Postman Collection'
43
49
branch : main
44
50
commit_user_name : Github-Actions 🤖
45
51
commit_user_email :
[email protected]
46
- commit_author :
Github-Actions🤖 <[email protected] >
52
+ commit_author :
Github-Actions🤖 <[email protected] >
53
+
54
+ # Keep the workflow alive
55
+ - uses : gautamkrishnar/keepalive-workflow@v1 # using the workflow with default settings
56
+ if : github.event_name != 'pull_request'
You can’t perform that action at this time.
0 commit comments