Skip to content

Commit febaea8

Browse files
authored
chore: improve logging (#97)
1 parent c424c3a commit febaea8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Copyright (c) 2021-2021, Seiso, LLC - All rights reserved.
1+
Copyright (c) 2021-2023, Seiso, LLC - All rights reserved.

Taskfile.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ tasks:
5959
- '! test -d .git'
6060
cmds:
6161
# Don't run this in pipelines
62-
- '{{if ne .GITHUB_ACTIONS "true"}}pipenv run pre-commit install{{end}}'
62+
- '{{if ne .GITHUB_ACTIONS "true"}}pipenv run pre-commit install{{else}}echo "Detected a github actions pipeline; skipping the pre-commit install"{{end}}'
6363

6464
init:
6565
desc: Initialize the repo for local use; intended to be run after git clone

{{cookiecutter.project_name|replace(" ", "")}}/Taskfile.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ tasks:
5959
for its shared configs, etc.
6060
internal: true
6161
status:
62-
# don't update submodules if you aren't in a git repository; quote to avoid yaml intrepretering the ! as a node tag
62+
# Only update submodules if you are in a git repository; quote to avoid yaml intrepretering the ! as a node tag
6363
# https://yaml.org/spec/1.2.2/#691-node-tags
6464
- '! test -d .git'
6565
cmds:
@@ -71,12 +71,12 @@ tasks:
7171
sources:
7272
- .pre-commit-config.yaml
7373
status:
74-
# Don't install the pre-commit hooks if you aren't in a git repository; quote to avoid yaml intrepretering the ! as a node tag
74+
# Only install the pre-commit hooks if you are in a git repository; quote to avoid yaml intrepretering the ! as a node tag
7575
# https://yaml.org/spec/1.2.2/#691-node-tags
7676
- '! test -d .git'
7777
cmds:
7878
# Don't run this in pipelines
79-
- '{{ "{{" }}if ne .GITHUB_ACTIONS "true"{{ "}}pipenv run pre-commit install{{end}}" }}'
79+
- '{{ "{{" }}if ne .GITHUB_ACTIONS "true"{{ "}}pipenv run pre-commit install{{else}}echo \"Detected a github actions pipeline; skipping the pre-commit install\"{{end}}" }}'
8080

8181
init:
8282
desc: Initialize the repo for local use; intended to be run after git clone

0 commit comments

Comments
 (0)