17
17
jobs :
18
18
build :
19
19
runs-on : ${{ matrix.os }}
20
+ if : github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
20
21
strategy :
21
22
matrix :
22
23
os : [windows-2022, ubuntu-22.04, macos-12]
26
27
AZURE_SOURCE : ${{ secrets.AZURE_SOURCE }}
27
28
AZURE_USER : ${{ secrets.AZURE_USER }}
28
29
GITHUB_PAT : ${{ secrets.GH_TOKEN }}
29
- GITTER_ROOM_ID : ${{ secrets.GITTER_ROOM_ID }}
30
30
GPR_PASSWORD : ${{ secrets.GPR_PASSWORD }}
31
31
GPR_SOURCE : ${{ secrets.GPR_SOURCE }}
32
32
GPR_USER : ${{ secrets.GPR_USER }}
33
- GITTER_TOKEN : ${{ secrets.GITTER_TOKEN }}
34
33
NUGET_API_KEY : ${{ secrets.NUGET_API_KEY }}
35
34
NUGET_SOURCE : " https://api.nuget.org/v3/index.json"
36
35
TWITTER_ACCESS_TOKEN : ${{ secrets.TWITTER_ACCESS_TOKEN }}
@@ -40,19 +39,25 @@ jobs:
40
39
WYAM_ACCESS_TOKEN : ${{ secrets.WYAM_ACCESS_TOKEN }}
41
40
WYAM_DEPLOY_BRANCH : " gh-pages"
42
41
WYAM_DEPLOY_REMOTE : ${{ github.event.repository.html_url }}
42
+
43
43
steps :
44
44
- name : Checkout the repository
45
- uses : actions/checkout@v3
45
+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
46
46
47
47
- name : Fetch all tags and branches
48
48
run : git fetch --prune --unshallow
49
49
50
50
- name : Cache Tools
51
- uses : actions/cache@v3
51
+ uses : actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
52
52
with :
53
53
path : tools
54
54
key : ${{ runner.os }}-tools-${{ hashFiles('recipe.cake', '.config/dotnet-tools.json') }}
55
55
56
+ # install libgit2-dev on ubuntu, so libgit2sharp works
57
+ - name : Install libgit-dev
58
+ if : runner.os == 'Linux'
59
+ run : sudo apt-get install -y libgit2-dev
60
+
56
61
- name : Setup required dotnet versions
57
62
uses : actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4.0.1
58
63
with :
@@ -65,24 +70,24 @@ jobs:
65
70
8.0.x
66
71
67
72
- name : Build project
68
- uses : cake-build/cake-action@v1
73
+ uses : cake-build/cake-action@1223b6fa067ad192159f43b50cd4f953679b0934 # v2.0.0
69
74
with :
70
75
script-path : recipe.cake
71
76
target : CI
72
77
verbosity : Normal
73
- cake-version : 0.38.5
74
- cake-bootstrap : true
78
+ cake-version : tool-manifest
75
79
76
80
- name : Upload Issues-Report
77
- uses : actions/upload-artifact@v3
81
+ uses : actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4
78
82
with :
79
83
if-no-files-found : warn
80
- name : issues
84
+ name : ${{ matrix.os }} Issues
81
85
path : BuildArtifacts/report.html
82
86
83
87
- name : Upload Packages
84
- uses : actions/upload-artifact@v3
88
+ if : runner.os == 'Windows'
89
+ uses : actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4
85
90
with :
86
91
if-no-files-found : warn
87
92
name : package
88
- path : BuildArtifacts/Packages/**/*
93
+ path : BuildArtifacts/Packages/**/*
0 commit comments