File tree 5 files changed +37
-9
lines changed
5 files changed +37
-9
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,11 @@ jobs:
106
106
run : |
107
107
cd "${{ env.INSTALL_PATH }}"
108
108
tar --extract --file="${{ steps.download.outputs.name }}"
109
- EXTRACTION_FOLDER="$(basename "${{ steps.download.outputs.name }}" "${{ env.SHELLCHECK_RELEASE_ASSET_SUFFIX }}")"
109
+ EXTRACTION_FOLDER="$(
110
+ basename \
111
+ "${{ steps.download.outputs.name }}" \
112
+ "${{ env.SHELLCHECK_RELEASE_ASSET_SUFFIX }}"
113
+ )"
110
114
# Add installation to PATH:
111
115
# See: https://docs.github.com/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#adding-a-system-path
112
116
echo "${{ env.INSTALL_PATH }}/$EXTRACTION_FOLDER" >> "$GITHUB_PATH"
Original file line number Diff line number Diff line change 40
40
id : determination
41
41
run : |
42
42
RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x"
43
- if [[ "${{ github.event_name }}" == "push" || ( "${{ github.event_name }}" == "create" && "${{ github.ref }}" =~ $RELEASE_BRANCH_REGEX ) ]]; then
43
+ if [[
44
+ "${{ github.event_name }}" == "push" ||
45
+ (
46
+ "${{ github.event_name }}" == "create" &&
47
+ "${{ github.ref }}" =~ $RELEASE_BRANCH_REGEX
48
+ )
49
+ ]]; then
44
50
RESULT="true"
45
51
else
46
52
RESULT="false"
@@ -96,7 +102,12 @@ jobs:
96
102
# Publishing implies creating a git commit on the gh-pages branch, we let @ArduinoBot own these commits.
97
103
git config --global user.email "[email protected] "
98
104
git config --global user.name "ArduinoBot"
99
- git fetch --no-tags --prune --depth=1 origin +refs/heads/gh-pages:refs/remotes/origin/gh-pages
105
+ git fetch \
106
+ --no-tags \
107
+ --prune \
108
+ --depth=1 \
109
+ origin \
110
+ +refs/heads/gh-pages:refs/remotes/origin/gh-pages
100
111
poetry run mike deploy \
101
112
--update-aliases \
102
113
--push \
Original file line number Diff line number Diff line change @@ -106,7 +106,8 @@ jobs:
106
106
env :
107
107
KEYCHAIN : " sign.keychain"
108
108
INSTALLER_CERT_MAC_PATH : " /tmp/ArduinoCerts2020.p12"
109
- KEYCHAIN_PASSWORD : keychainpassword # Arbitrary password for a keychain that exists only for the duration of the job, so not secret
109
+ # Arbitrary password for a keychain that exists only for the duration of the job, so not secret
110
+ KEYCHAIN_PASSWORD : keychainpassword
110
111
run : |
111
112
echo "${{ secrets.INSTALLER_CERT_MAC_P12 }}" | base64 --decode > "${{ env.INSTALLER_CERT_MAC_PATH }}"
112
113
security create-keychain -p "${{ env.KEYCHAIN_PASSWORD }}" "${{ env.KEYCHAIN }}"
Original file line number Diff line number Diff line change @@ -115,7 +115,8 @@ jobs:
115
115
env :
116
116
KEYCHAIN : " sign.keychain"
117
117
INSTALLER_CERT_MAC_PATH : " /tmp/ArduinoCerts2020.p12"
118
- KEYCHAIN_PASSWORD : keychainpassword # Arbitrary password for a keychain that exists only for the duration of the job, so not secret
118
+ # Arbitrary password for a keychain that exists only for the duration of the job, so not secret
119
+ KEYCHAIN_PASSWORD : keychainpassword
119
120
run : |
120
121
echo "${{ secrets.INSTALLER_CERT_MAC_P12 }}" | base64 --decode > "${{ env.INSTALLER_CERT_MAC_PATH }}"
121
122
security create-keychain -p "${{ env.KEYCHAIN_PASSWORD }}" "${{ env.KEYCHAIN }}"
@@ -211,7 +212,15 @@ jobs:
211
212
run : |
212
213
wget -q -P /tmp https://github.com/fsaintjacques/semver-tool/archive/3.2.0.zip
213
214
unzip -p /tmp/3.2.0.zip semver-tool-3.2.0/src/semver >/tmp/semver && chmod +x /tmp/semver
214
- if [[ "$(/tmp/semver get prerel "${GITHUB_REF/refs\/tags\//}")" ]]; then echo "::set-output name=IS_PRE::true"; fi
215
+ if [[ \
216
+ "$(
217
+ /tmp/semver get prerel \
218
+ "${GITHUB_REF/refs\/tags\//}"
219
+ )" != \
220
+ "" \
221
+ ]]; then
222
+ echo "IS_PRE=true" >> $GITHUB_OUTPUT
223
+ fi
215
224
216
225
- name : Create Github Release and upload artifacts
217
226
uses : ncipollo/release-action@v1
Original file line number Diff line number Diff line change @@ -154,7 +154,8 @@ tasks:
154
154
echo "Licensed does not have Windows support."
155
155
echo "Please use Linux/macOS or download the dependencies cache from the GitHub Actions workflow artifact."
156
156
else
157
- echo "licensed not found or not in PATH. Please install: https://github.com/github/licensed#as-an-executable"
157
+ echo "licensed not found or not in PATH."
158
+ echo "Please install: https://github.com/github/licensed#as-an-executable"
158
159
fi
159
160
exit 1
160
161
fi
@@ -174,7 +175,8 @@ tasks:
174
175
cmds :
175
176
- |
176
177
if ! which ec &>/dev/null; then
177
- echo "ec not found or not in PATH. Please install: https://github.com/editorconfig-checker/editorconfig-checker#installation"
178
+ echo "ec not found or not in PATH."
179
+ echo "Please install: https://github.com/editorconfig-checker/editorconfig-checker#installation"
178
180
exit 1
179
181
fi
180
182
- ec
@@ -410,7 +412,8 @@ tasks:
410
412
fi
411
413
- |
412
414
if ! which shellcheck &>/dev/null; then
413
- echo "shellcheck not installed or not in PATH. Please install: https://github.com/koalaman/shellcheck#installing"
415
+ echo "shellcheck not installed or not in PATH."
416
+ echo "Please install: https://github.com/koalaman/shellcheck#installing"
414
417
exit 1
415
418
fi
416
419
- |
You can’t perform that action at this time.
0 commit comments