File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 14
14
DOTNET_SKIP_FIRST_TIME_EXPERIENCE : true
15
15
DOTNET_CLI_TELEMETRY_OPTOUT : true
16
16
17
- permissions :
18
- contents : write
19
- pull-requests : write
20
-
21
17
jobs :
22
18
Update :
23
19
runs-on : ubuntu-latest
@@ -27,14 +23,22 @@ jobs:
27
23
with :
28
24
show-progress : false
29
25
fetch-depth : 1
26
+ - name : Install
27
+ # Change dir to avoid problems with global.json in repo root.
28
+ working-directory : ${{ runner.temp }}
29
+ run : |
30
+ $ErrorActionPreference = 'Stop'
31
+ $PSNativeCommandUseErrorActionPreference = $true
32
+ dotnet tool update -g dotnet-file
30
33
- name : Update
31
34
# Both must be set because dotnet-file internally calls gh cli to fetch the changelog.
32
35
env :
33
36
GCM_CREDENTIAL_STORE : cache
34
37
GH_TOKEN : ${{ github.token }}
35
38
id : update
36
39
run : |
37
- dotnet tool update -g dotnet-file
40
+ $ErrorActionPreference = 'Stop'
41
+ $PSNativeCommandUseErrorActionPreference = $true
38
42
39
43
[string]$tmpfile = New-TemporaryFile
40
44
dotnet-file update "-c:$tmpfile"
52
56
- name : Pull Request
53
57
uses : peter-evans/create-pull-request@v6
54
58
with :
59
+ token : ${{ secrets.DOTNET_FILESYNC_PAT }}
55
60
base : master
56
61
branch : dotnet-file-sync
57
62
delete-branch : true
61
66
commit-message : |
62
67
Update Single File Dependencies
63
68
64
- ${{ steps.sync .outputs.Changelog }}
69
+ ${{ steps.update .outputs.Changelog }}
You can’t perform that action at this time.
0 commit comments