Skip to content

Commit b69364b

Browse files
committed
chore(taskfile): update taskfile
1 parent b0bca6a commit b69364b

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

.taskfiles/VERSION

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20230327_01

.taskfiles/task_dep.yaml

+5-3
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,19 @@ includes:
1919
internal: true
2020

2121
tasks:
22-
init-dep-branch:
22+
init_dep_branch:
2323
desc: Init git branch {{.BRANCH_DEP_PREFIX}}/*
2424
cmds:
2525
- git pull {{.GIT_REMOTE}} {{.BRANCH_BASE}}:{{.BRANCH_BASE}}
26-
- git branch -D {{.BRANCH_DEP_PREFIX}}/{{.BRANCH_NAME}} 2>/dev/null || git switch -c {{.BRANCH_DEP_PREFIX}}/{{.BRANCH_NAME}} {{.BRANCH_BASE}}
26+
- |
27+
[[ -z $(git branch --list {{.BRANCH_DEP_PREFIX}}/{{.BRANCH_NAME}}) ]] && git branch -D {{.BRANCH_DEP_PREFIX}}/{{.BRANCH_NAME}} 2>/dev/null || true
28+
- git switch -c {{.BRANCH_DEP_PREFIX}}/{{.BRANCH_NAME}} {{.BRANCH_BASE}}
2729
silent: true
2830

2931
update:
3032
desc: Check whether the new version of the npm package broke the build.
3133
cmds:
32-
- task: init-dep-branch
34+
- task: init_dep_branch
3335
vars:
3436
BRANCH_NAME: "{{.CLI_ARGS}}"
3537
- ncu -u -f {{.CLI_ARGS}}

.taskfiles/task_release.yaml

+1-7
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,10 @@ tasks:
1616
- go install github.com/git-chglog/git-chglog/cmd/git-chglog@latest
1717
- go install github.com/miniscruff/changie@latest
1818

19-
clean_changelog:
20-
desc: Clean changelog for existing git tags
21-
cmds:
22-
- rm ${CHANGES_DIR}/${TAG_PREFIX}*.md || true
23-
silent: true
24-
2519
batch_changelog:
2620
desc: Generate changelog for existing git tags
2721
cmds:
28-
- task: clean_changelog
22+
- rm ${CHANGES_DIR}/${TAG_PREFIX}*.md || true
2923
- for VERSION_TAG in $(git -c 'versionsort.suffix=-' tag --list --sort=v:refname); do git-chglog --output ${CHANGES_DIR}/${VERSION_TAG}.md ${VERSION_TAG} ; done
3024
silent: true
3125

0 commit comments

Comments
 (0)