Skip to content

Commit 4a93b55

Browse files
Bump actions/checkout to v4 (#822)
1 parent 75698ba commit 4a93b55

8 files changed

+41
-42
lines changed

.github/workflows/check-go-dependencies-task.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868

6969
steps:
7070
- name: Checkout repository
71-
uses: actions/checkout@v3
71+
uses: actions/checkout@v4
7272
with:
7373
submodules: recursive
7474

@@ -118,7 +118,7 @@ jobs:
118118

119119
steps:
120120
- name: Checkout repository
121-
uses: actions/checkout@v3
121+
uses: actions/checkout@v4
122122
with:
123123
submodules: recursive
124124

.github/workflows/check-go-task.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868

6969
steps:
7070
- name: Checkout repository
71-
uses: actions/checkout@v3
71+
uses: actions/checkout@v4
7272

7373
- name: Install Go
7474
uses: actions/setup-go@v4
@@ -105,7 +105,7 @@ jobs:
105105

106106
steps:
107107
- name: Checkout repository
108-
uses: actions/checkout@v3
108+
uses: actions/checkout@v4
109109

110110
- name: Install Go
111111
uses: actions/setup-go@v4
@@ -142,7 +142,7 @@ jobs:
142142

143143
steps:
144144
- name: Checkout repository
145-
uses: actions/checkout@v3
145+
uses: actions/checkout@v4
146146

147147
- name: Install Go
148148
uses: actions/setup-go@v4
@@ -179,7 +179,7 @@ jobs:
179179

180180
steps:
181181
- name: Checkout repository
182-
uses: actions/checkout@v3
182+
uses: actions/checkout@v4
183183

184184
- name: Install Go
185185
uses: actions/setup-go@v4
@@ -216,7 +216,7 @@ jobs:
216216

217217
steps:
218218
- name: Checkout repository
219-
uses: actions/checkout@v3
219+
uses: actions/checkout@v4
220220

221221
- name: Install Go
222222
uses: actions/setup-go@v4

.github/workflows/check-license.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363

6464
steps:
6565
- name: Checkout repository
66-
uses: actions/checkout@v3
66+
uses: actions/checkout@v4
6767

6868
- name: Install Ruby
6969
uses: ruby/setup-ruby@v1

.github/workflows/publish-go-tester-task.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ jobs:
6060
build:
6161
needs: run-determination
6262
if: needs.run-determination.outputs.result == 'true'
63-
63+
6464
#use the strategy instead because we still use the native build
6565
strategy:
6666
matrix:
6767
os: [ubuntu-20.04, windows-2019, macos-12]
6868
arch: [-amd64]
6969
include:
70-
- os: windows-2019
71-
arch: -386
70+
- os: windows-2019
71+
arch: -386
7272

7373
defaults:
7474
run:
@@ -77,7 +77,6 @@ jobs:
7777
runs-on: ${{ matrix.os }}
7878

7979
steps:
80-
8180
- name: Set env vars
8281
run: |
8382
echo $(go env GOPATH)/bin >> $GITHUB_PATH
@@ -86,7 +85,7 @@ jobs:
8685
run: git config --global core.autocrlf false
8786

8887
- name: Checkout repository
89-
uses: actions/checkout@v3
88+
uses: actions/checkout@v4
9089

9190
- name: Install Go
9291
uses: actions/setup-go@v4
@@ -122,7 +121,7 @@ jobs:
122121
# building the agent for win requires a different task because of an extra flag
123122
- name: Build the Agent for win32
124123
env:
125-
GOARCH: 386 # 32bit architecture (for support)
124+
GOARCH: 386 # 32bit architecture (for support)
126125
run: task go:build-win
127126
if: runner.os == 'Windows' && matrix.arch == '-386'
128127

.github/workflows/release.yml

+24-24
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ jobs:
3333
os: [ubuntu-20.04, windows-2019, macos-12]
3434
arch: [amd64]
3535
include:
36-
- os: windows-2019
37-
arch: 386
38-
ext: ".exe"
39-
- os: windows-2019
40-
ext: ".exe"
36+
- os: windows-2019
37+
arch: 386
38+
ext: ".exe"
39+
- os: windows-2019
40+
ext: ".exe"
4141

4242
defaults:
4343
run:
@@ -55,15 +55,15 @@ jobs:
5555
# This is a workaround while waiting for create-release action to implement auto pre-release based on tag
5656
id: prerelease
5757
run: |
58-
curl -L -s https://github.com/fsaintjacques/semver-tool/archive/3.1.0.zip -o /tmp/3.1.0.zip
58+
curl -L -s https://github.com/fsaintjacques/semver-tool/archive/3.1.0.zip -o /tmp/3.1.0.zip
5959
unzip -p /tmp/3.1.0.zip semver-tool-3.1.0/src/semver >/tmp/semver && chmod +x /tmp/semver
6060
if [[ $(/tmp/semver get prerel ${GITHUB_REF/refs\/tags\//}) ]]; then echo "IS_PRE=true" >> $GITHUB_OUTPUT; fi
6161
6262
- name: Disable EOL conversions
6363
run: git config --global core.autocrlf false
6464

6565
- name: Checkout
66-
uses: actions/checkout@v3
66+
uses: actions/checkout@v4
6767

6868
- name: Install Go
6969
uses: actions/setup-go@v4
@@ -81,7 +81,7 @@ jobs:
8181
- name: Install Taskfile
8282
uses: arduino/setup-task@v1
8383
with:
84-
version: '3.x'
84+
version: "3.x"
8585
repo-token: ${{ secrets.GITHUB_TOKEN }}
8686

8787
- name: Build the Agent for linux
@@ -102,7 +102,7 @@ jobs:
102102
# building the agent for win requires a different task because of an extra flag
103103
- name: Build the Agent for win32
104104
env:
105-
GOARCH: 386 # 32bit architecture (for support)
105+
GOARCH: 386 # 32bit architecture (for support)
106106
run: task go:build-win
107107
if: matrix.os == 'windows-2019' && matrix.arch == '386'
108108

@@ -138,7 +138,7 @@ jobs:
138138
- name: Upload autoupdate files to Arduino downloads servers
139139
run: |
140140
aws s3 sync public/ s3://${{ secrets.DOWNLOADS_BUCKET }}${{ env.TARGET }}
141-
aws s3 sync public/ s3://${{ secrets.DOWNLOADS_BUCKET }}${{ env.OLD_TARGET }}
141+
aws s3 sync public/ s3://${{ secrets.DOWNLOADS_BUCKET }}${{ env.OLD_TARGET }}
142142
if: steps.prerelease.outputs.IS_PRE != 'true'
143143

144144
- name: Upload artifacts
@@ -163,9 +163,9 @@ jobs:
163163

164164
steps:
165165
- name: Checkout
166-
uses: actions/checkout@v3
166+
uses: actions/checkout@v4
167167
with:
168-
repository: 'bcmi-labs/arduino-create-agent-installer' # the repo which contains the bundle structure and icons
168+
repository: "bcmi-labs/arduino-create-agent-installer" # the repo which contains the bundle structure and icons
169169
token: ${{ secrets.ARDUINO_CREATE_AGENT_CI_PAT }}
170170

171171
- name: Download artifact
@@ -218,7 +218,7 @@ jobs:
218218
if-no-files-found: error
219219
name: ArduinoCreateAgent.app_${{ matrix.arch }}
220220
path: ArduinoCreateAgent.app_${{ matrix.arch }}.tar
221-
221+
222222
# The notarize-macos job will download the macos bundle from the previous job, sign, notarize and re-upload it, uploading it also on s3 download servers for the autoupdate.
223223
notarize-macos:
224224
name: Notarize bundle
@@ -262,7 +262,7 @@ jobs:
262262
"${{ env.KEYCHAIN }}"
263263
264264
- name: Install gon for code signing and app notarization
265-
uses: actions/checkout@v3
265+
uses: actions/checkout@v4
266266
with:
267267
repository: darkvertex/gon #this fork has support for --deep notarization
268268
path: ${{ env.GON_PATH }}
@@ -297,7 +297,7 @@ jobs:
297297
298298
- name: Sign and notarize binary
299299
run: gon -log-level=debug -log-json "${{ env.GON_CONFIG_PATH }}"
300-
300+
301301
- name: Upload autoupdate bundle to Arduino downloads servers
302302
run: aws s3 cp ArduinoCreateAgent.app_${{ matrix.arch }}_notarized.zip s3://${{ secrets.DOWNLOADS_BUCKET }}${{ env.TARGET }}${GITHUB_REF/refs\/tags\//}/ # the version should be created in th the build job
303303
if: ${{ needs.build.outputs.prerelease != 'true' }}
@@ -338,8 +338,8 @@ jobs:
338338
INSTALLER_CERT_WINDOWS_PFX: "/tmp/ArduinoCerts2020.pfx"
339339

340340
strategy:
341-
fail-fast: false # if one os is failing continue nonetheless
342-
matrix: # used to generate installers for different OS and not for runs-on
341+
fail-fast: false # if one os is failing continue nonetheless
342+
matrix: # used to generate installers for different OS and not for runs-on
343343
os: [ubuntu-20.04, windows-2019]
344344
arch: [amd64]
345345
include:
@@ -361,16 +361,16 @@ jobs:
361361

362362
steps:
363363
- name: Checkout
364-
uses: actions/checkout@v3
364+
uses: actions/checkout@v4
365365
with:
366-
repository: 'bcmi-labs/arduino-create-agent-installer' # the repo which contains install.xml
366+
repository: "bcmi-labs/arduino-create-agent-installer" # the repo which contains install.xml
367367
token: ${{ secrets.ARDUINO_CREATE_AGENT_CI_PAT }}
368368

369369
- name: Download artifact
370370
uses: actions/download-artifact@v3
371371
with:
372372
name: ${{ env.PROJECT_NAME }}-${{ matrix.os }}-${{ matrix.arch }}
373-
path: artifacts/${{ matrix.platform-name }}/ # path expected by installbuilder
373+
path: artifacts/${{ matrix.platform-name }}/ # path expected by installbuilder
374374

375375
# zip artifacts do not mantain executable permission
376376
- name: Make executable
@@ -417,9 +417,9 @@ jobs:
417417
runs-on: macos-12
418418
steps:
419419
- name: Checkout repo with icons/background
420-
uses: actions/checkout@v3
420+
uses: actions/checkout@v4
421421
with:
422-
repository: 'bcmi-labs/arduino-create-agent-installer' # the repo which contains the icons/background
422+
repository: "bcmi-labs/arduino-create-agent-installer" # the repo which contains the icons/background
423423
token: ${{ secrets.ARDUINO_CREATE_AGENT_CI_PAT }}
424424

425425
- name: Download artifact
@@ -515,7 +515,7 @@ jobs:
515515

516516
steps:
517517
- name: Checkout
518-
uses: actions/checkout@v3
518+
uses: actions/checkout@v4
519519
with:
520520
fetch-depth: 0 # fetch all history for the create changelog step to work properly
521521

@@ -579,7 +579,7 @@ jobs:
579579
with:
580580
repo_token: ${{ secrets.GITHUB_TOKEN }}
581581
tag: ${{ github.ref }}
582-
file_glob: true # If set to true, the file argument can be a glob pattern
582+
file_glob: true # If set to true, the file argument can be a glob pattern
583583
file: release/*
584584

585585
- name: Upload release files on Arduino downloads servers

.github/workflows/sync-labels.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
steps:
2929
- name: Checkout repository
30-
uses: actions/checkout@v3
30+
uses: actions/checkout@v4
3131

3232
- name: Download JSON schema for labels configuration file
3333
id: download-schema
@@ -106,7 +106,7 @@ jobs:
106106
echo "flag=--dry-run" >> $GITHUB_OUTPUT
107107
108108
- name: Checkout repository
109-
uses: actions/checkout@v3
109+
uses: actions/checkout@v4
110110

111111
- name: Download configuration files artifact
112112
uses: actions/download-artifact@v3

.github/workflows/test-go-integration-task.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272

7373
steps:
7474
- name: Checkout repository
75-
uses: actions/checkout@v3
75+
uses: actions/checkout@v4
7676

7777
- name: Install Go
7878
uses: actions/setup-go@v4

.github/workflows/test-go-task.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
run: git config --global core.autocrlf false
7979

8080
- name: Checkout repository
81-
uses: actions/checkout@v3
81+
uses: actions/checkout@v4
8282

8383
- name: Install Go
8484
uses: actions/setup-go@v4

0 commit comments

Comments
 (0)