Skip to content

Commit a6a28a6

Browse files
committed
Continued to clean up github actions.
1 parent e9b449d commit a6a28a6

File tree

3 files changed

+21
-15
lines changed

3 files changed

+21
-15
lines changed

.github/workflows/build.workflow.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Check out repository
2222
uses: actions/[email protected]
2323
with:
24-
ref: ${{ github.event.pull_request.head.ref }}
24+
fetch-depth: 0
2525

2626
- name: Build Release
2727
run: |
@@ -38,14 +38,11 @@ jobs:
3838
build-macos:
3939
runs-on: macos-latest
4040

41-
permissions:
42-
contents: write
43-
4441
steps:
4542
- name: Check out repository
4643
uses: actions/[email protected]
4744
with:
48-
ref: ${{ github.event.pull_request.head.ref }}
45+
fetch-depth: 0
4946

5047
- name: Build Release
5148
run: |
@@ -65,14 +62,11 @@ jobs:
6562
build-windows:
6663
runs-on: windows-latest
6764

68-
permissions:
69-
contents: write
70-
7165
steps:
7266
- name: Check out repository
7367
uses: actions/[email protected]
7468
with:
75-
ref: ${{ github.event.pull_request.head.ref }}
69+
fetch-depth: 0
7670

7771
- name: Build Release
7872
shell: cmd

.github/workflows/canary-build.workflow.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ jobs:
1919

2020
steps:
2121
- name: Check out repository
22-
uses: actions/checkout@v4
22+
uses: actions/[email protected]
23+
with:
24+
fetch-depth: 0
2325

2426
- name: Build Release
2527
run: |
@@ -30,7 +32,9 @@ jobs:
3032

3133
steps:
3234
- name: Check out repository
33-
uses: actions/checkout@v4
35+
uses: actions/[email protected]
36+
with:
37+
fetch-depth: 0
3438

3539
- name: Build Release
3640
run: |
@@ -44,7 +48,9 @@ jobs:
4448

4549
steps:
4650
- name: Check out repository
47-
uses: actions/checkout@v4
51+
uses: actions/[email protected]
52+
with:
53+
fetch-depth: 0
4854

4955
- name: Build Release
5056
shell: cmd

.github/workflows/test.workflow.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ jobs:
2929

3030
steps:
3131
- name: Check out repository
32-
uses: actions/checkout@v4
32+
uses: actions/[email protected]
33+
with:
34+
fetch-depth: 0
3335

3436
- name: Run tests
3537
run: ./bin/test.sh
@@ -39,7 +41,9 @@ jobs:
3941

4042
steps:
4143
- name: Check out repository
42-
uses: actions/checkout@v4
44+
uses: actions/[email protected]
45+
with:
46+
fetch-depth: 0
4347

4448
- name: Setup .NET Core
4549
uses: actions/setup-dotnet@v4
@@ -67,7 +71,9 @@ jobs:
6771

6872
steps:
6973
- name: Check out repository
70-
uses: actions/checkout@v4
74+
uses: actions/[email protected]
75+
with:
76+
fetch-depth: 0
7177

7278
- name: Copy files from project to UnityPackage
7379
run: |

0 commit comments

Comments
 (0)