Skip to content

Commit fab8988

Browse files
committed
fix: modernize action
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
1 parent 183eabf commit fab8988

5 files changed

Lines changed: 11 additions & 5 deletions

File tree

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ insert_final_newline = true
88
trim_trailing_whitespace = true
99
end_of_line = lf
1010
max_line_length = 160
11+
12+
[{README.md,.github/{workflows,ISSUE_TEMPLATE}/*.yaml}]
13+
max_line_length = 200

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 🐞 Bug
2-
description: Something is not working as indended.
2+
description: Something is not working as indented.
33
labels: [🐞 bug]
44
body:
55
- type: markdown

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ jobs:
8080
VALIDATE_JSCPD: false
8181
VALIDATE_TYPESCRIPT_ES: false
8282
VALIDATE_JSON: false
83+
VALIDATE_MARKDOWN: false
8384

8485
release:
8586
if: github.repository_owner == 'jkroepke' && github.ref_name == 'main'

.github/workflows/renovate-custom-hooks.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ jobs:
104104
105105
# Call GitHub API
106106
curl https://api.github.com/graphql -f \
107-
-sSf -H "Authorization: Bearer $GITHUB_TOKEN" \
108-
--data "@$JSON_PAYLOAD_FILE"
107+
-sSf -H "Authorization: Bearer $GITHUB_TOKEN" \
108+
--data "@$JSON_PAYLOAD_FILE"
109109
110110
# Clean up temporary files
111111
rm "$FILE_CHANGES_JSON_FILE" "$JSON_PAYLOAD_FILE"

src/main.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ async function latestVersion(
7878

7979
if (res.statusCode !== 200 || !res.result || !res.result.tag_name) {
8080
core.warning(
81-
`Cannot get the latest ${toolName} info from https://github.com/${githubRepo}/releases/latest. Invalid response: ${JSON.stringify(res)}. Using default version ${stableVersion}.`
81+
`Cannot get the latest ${toolName} info from https://github.com/${githubRepo}/releases/latest. ` +
82+
`Invalid response: ${JSON.stringify(res)}. Using default version ${stableVersion}.`
8283
)
8384

8485
return stableVersion
@@ -87,7 +88,8 @@ async function latestVersion(
8788
return res.result.tag_name.trim()
8889
} catch (e) {
8990
core.warning(
90-
`Cannot get the latest ${toolName} info from https://github.com/${githubRepo}/releases/latest. Error ${e}. Using default version ${stableVersion}.`
91+
`Cannot get the latest ${toolName} info from https://github.com/${githubRepo}/releases/latest. ` +
92+
`Error ${e}. Using default version ${stableVersion}.`
9193
)
9294
}
9395

0 commit comments

Comments
 (0)