Skip to content

Commit 53f80c0

Browse files
author
Megabyte Labs
committed
☁️ chore(automation): Applying changes from upstream repository.
1 parent b40ad97 commit 53f80c0

File tree

5 files changed

+135
-398
lines changed

5 files changed

+135
-398
lines changed

.config/taskfiles/fix/Taskfile.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ tasks:
2525
- :install:npm:eslint
2626
- :install:software:unbuffer
2727
desc: Fix ESLint errors automatically
28+
vars:
29+
ESLINT_LOG:
30+
sh: mktemp
2831
summary: |
2932
# Fix Errors with ESLint Automatically
3033
@@ -37,9 +40,6 @@ tasks:
3740
3841
**Example fixing all files in a project:**
3942
`task fix:js`
40-
vars:
41-
ESLINT_LOG:
42-
sh: mktemp
4343
log:
4444
error: ESLint found some issues that need to be fixed manually
4545
start: Auto-fixing with ESLint

.config/taskfiles/install/Taskfile-software.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -597,15 +597,6 @@ tasks:
597597
status:
598598
- type git > /dev/null
599599

600-
git-issue:admin:
601-
run: once
602-
cmds:
603-
- git clone https://github.com/dspinellis/git-issue.git .git-issue
604-
- |
605-
cd .git-issue
606-
sudo make install
607-
- rm -rf .git-issue
608-
609600
gitlab-runner:
610601
run: once
611602
cmds:
@@ -620,6 +611,15 @@ tasks:
620611
vars:
621612
PACKAGE: gitleaks
622613

614+
git-issue:admin:
615+
run: once
616+
cmds:
617+
- git clone https://github.com/dspinellis/git-issue.git .git-issue
618+
- |
619+
cd .git-issue
620+
sudo make install
621+
- rm -rf .git-issue
622+
623623
glab:
624624
run: once
625625
cmds:

.config/taskfiles/release/Taskfile.yml

+24-54
Original file line numberDiff line numberDiff line change
@@ -230,54 +230,24 @@ tasks:
230230

231231
fail:
232232
deps:
233-
- fail:ansible
234-
- fail:docker
235-
- fail:go
236-
- fail:npm
237-
- fail:packer
238-
- fail:python
239-
summary: |
240-
| Command property | Description |
241-
|------------------|---------------------------------------------------------------------------------------------------------------------|
242-
| `exit code` | Any non `0` code is considered as an unexpected error and will stop the `semantic-release` execution with an error. |
243-
| `stdout` | Can be used for logging. |
244-
| `stderr` | Can be used for logging. |
245-
246-
fail:ansible:
247-
cmds:
248-
- 'true'
249-
status:
250-
- '[ -z "$RELEASE_ANSIBLE" ]'
251-
252-
fail:docker:
253-
cmds:
254-
- 'true'
255-
status:
256-
- '[ -z "$RELEASE_DOCKER" ]'
257-
258-
fail:go:
259-
cmds:
260-
- 'true'
261-
status:
262-
- '[ -z "$RELEASE_GO" ]'
263-
264-
fail:npm:
265-
cmds:
266-
- 'true'
267-
status:
268-
- '[ -z "$RELEASE_NPM" ]'
269-
270-
fail:packer:
271-
cmds:
272-
- 'true'
273-
status:
274-
- '[ -z "$RELEASE_PACKER" ]'
275-
276-
fail:python:
233+
- :install:software:jq
234+
env:
235+
PACKAGE_JSON:
236+
sh: jq -r '.' package.json
237+
RELEASE_JSON:
238+
sh: jq -r '.' .release.json
239+
TMP:
240+
sh: mktemp
241+
VARIABLES_JSON:
242+
sh: jq -r '.' .variables.json
277243
cmds:
278-
- 'true'
244+
- jq -n --arg pkg "$PACKAGE_JSON" --arg release "$RELEASE_JSON" --arg vars "$VARIABLES_JSON" --arg job "$CI_JOB_ID"
245+
'.["package.json"] = $pkg | .[".release.json"] = $release | .[".variables.json"] = $vars | .CI_JOB_ID = $job' > "$TMP"
246+
- >
247+
curl -X POST -H "Content-Type: application/json" -d "$(cat "$TMP")"
248+
"https://maker.ifttt.com/trigger/SemanticReleaseFail/json/with/key/$IFTTT_WEBHOOK_TOKEN"
279249
status:
280-
- '[ -z "$RELEASE_PYTHON" ]'
250+
- '[ -z "$IFTTT_WEBHOOK_TOKEN" ]'
281251

282252
notes:
283253
cmds:
@@ -519,12 +489,6 @@ tasks:
519489
success:
520490
deps:
521491
- :install:software:jq
522-
summary: |
523-
| Command property | Description |
524-
|------------------|---------------------------------------------------------------------------------------------------------------------|
525-
| `exit code` | Any non `0` code is considered as an unexpected error and will stop the `semantic-release` execution with an error. |
526-
| `stdout` | Can be used for logging. |
527-
| `stderr` | Can be used for logging. |
528492
env:
529493
PACKAGE_JSON:
530494
sh: jq -r '.' package.json
@@ -534,14 +498,20 @@ tasks:
534498
sh: mktemp
535499
VARIABLES_JSON:
536500
sh: jq -r '.' .variables.json
501+
summary: |
502+
| Command property | Description |
503+
|------------------|---------------------------------------------------------------------------------------------------------------------|
504+
| `exit code` | Any non `0` code is considered as an unexpected error and will stop the `semantic-release` execution with an error. |
505+
| `stdout` | Can be used for logging. |
506+
| `stderr` | Can be used for logging. |
537507
cmds:
538508
- jq -n --arg pkg "$PACKAGE_JSON" --arg release "$RELEASE_JSON" --arg vars "$VARIABLES_JSON"
539509
'.["package.json"] = $pkg | .[".release.json"] = $release | .[".variables.json"] = $vars' > "$TMP"
540510
- >
541511
curl -X POST -H "Content-Type: application/json" -d "$(cat "$TMP")"
542-
"https://maker.ifttt.com/trigger/SemanticRelease/json/with/key/$IFTTT_SEMANTICRELEASE"
512+
"https://maker.ifttt.com/trigger/SemanticRelease/json/with/key/$IFTTT_WEBHOOK_TOKEN"
543513
status:
544-
- '[ -z "$IFTTT_SEMANTICRELEASE" ]'
514+
- '[ -z "$IFTTT_WEBHOOK_TOKEN" ]'
545515

546516
verify:conditions:
547517
deps:

0 commit comments

Comments
 (0)