1
1
# Copyright (c) Microsoft Corporation.
2
2
# Licensed under the MIT license.
3
3
4
- name : Update Release Build Parameters
4
+ name : Daily Updates
5
+
6
+ permissions :
7
+ contents : read
5
8
6
9
on :
7
10
workflow_dispatch :
8
- push :
9
- paths :
10
- - ' .github/workflows/update.yml'
11
- branches :
12
- - master
13
- - add-gh-action
14
- pull_request :
15
- paths :
16
- - ' .github/workflows/update.yml'
17
11
schedule :
18
12
# At 20:20 UTC on every day-of-week from Monday through Friday.
19
13
- cron : ' 0 0/4 * * *'
27
21
name : Update Release Build Parameters
28
22
timeout-minutes : 15
29
23
runs-on : ubuntu-20.04
24
+ permissions :
25
+ pull-requests : write
26
+ contents : write # for peter-evans/create-pull-request to create branch
30
27
steps :
31
28
- name : Checkout
32
29
uses : actions/checkout@v2
@@ -37,23 +34,24 @@ jobs:
37
34
- name : Create Pull Request
38
35
if : github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
39
36
id : cpr
40
- uses : peter-evans/create-pull-request@v3
41
- env :
42
- GITHUB_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
37
+ uses : peter-evans/create-pull-request@v4
43
38
with :
39
+ token : " ${{ secrets.PR_PAT }}"
44
40
commit-message : " Update the release build yaml with the latest versions"
45
- committer : GitHub <noreply@github .com>
46
- author : ${{ github.actor }} <${{ github.actor }}@users.noreply.github .com>
41
+ committer : PwshBot <pwshbot@microsoft .com>
42
+ author : PwshBot <pwshbot@microsoft .com>
47
43
title : " Update the release build yaml with the latest versions"
48
- assignees : travisez13
49
- reviewers : travisez13
50
44
base : master
51
45
draft : false
52
46
branch : update-release-build
47
+ push-to-fork : pwshBot/PowerShell-Docker
53
48
update-matrix-json :
54
49
name : Update Matrix Json
55
50
timeout-minutes : 15
56
51
runs-on : ubuntu-20.04
52
+ permissions :
53
+ pull-requests : write
54
+ contents : write # for peter-evans/create-pull-request to create branch
57
55
steps :
58
56
- name : Checkout
59
57
uses : actions/checkout@v2
@@ -70,16 +68,14 @@ jobs:
70
68
- name : Create Pull Request
71
69
if : github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
72
70
id : cpr
73
- uses : peter-evans/create-pull-request@v3
74
- env :
75
- GITHUB_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
71
+ uses : peter-evans/create-pull-request@v4
76
72
with :
73
+ token : " ${{ secrets.PR_PAT }}"
77
74
commit-message : " Update the matrix json"
78
- committer : GitHub <noreply@github .com>
79
- author : ${{ github.actor }} <${{ github.actor }}@users.noreply.github .com>
75
+ committer : PwshBot <pwshbot@microsoft .com>
76
+ author : PwshBot <pwshbot@microsoft .com>
80
77
title : " Update the matrix json"
81
- assignees : travisez13
82
- reviewers : travisez13
83
78
base : master
84
79
draft : false
85
80
branch : update-matrix-json
81
+ push-to-fork : pwshBot/PowerShell-Docker
0 commit comments