Skip to content

Commit ff6911f

Browse files
authored
chore(copier): update from template
1 parent 20abf34 commit ff6911f

5 files changed

Lines changed: 29 additions & 83 deletions

File tree

.config/copier/.copier-answers.shared.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This file is @generated by <https://github.com/liblaf/copier-shared>.
33
# DO NOT EDIT!
44
# prettier-ignore
5-
_commit: c7900f6
5+
_commit: 569bd36
66
_src_path: gh:liblaf/copier-share
77
author_email: 30631553+liblaf@users.noreply.github.com
88
author_name: liblaf

.config/mise/conf.d/10-shared.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#:schema https://mise.jdx.dev/schema/mise.json
2+
# This file is @generated by <https://github.com/liblaf/copier-shared>.
3+
# DO NOT EDIT!
4+
5+
[env]
6+
_.file = ".env"

.envrc

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,10 @@
44

55
export DIRENV_ROOT="$PWD"
66

7-
function find-sources() {
8-
local starting="$1"
9-
if [[ ! -d $starting ]]; then
10-
return
11-
fi
12-
find "$starting" -name "*.sh" -type f
13-
}
14-
15-
readarray -t files < <(
16-
find-sources "$PWD/.config/copier/direnv/"
17-
find-sources "$PWD/.config/direnv/"
18-
)
19-
20-
readarray -t files < <(
21-
for file in "${files[@]}"; do
22-
name="$(basename -- "$file")"
23-
printf "%s\t%s\n" "$name" "$file"
24-
done |
25-
sort |
26-
cut --fields="2"
27-
)
28-
29-
for file in "${files[@]}"; do
30-
source_env_if_exists "$file"
31-
done
7+
if [[ -d "$PWD/.config/direnv/" ]]; then
8+
find "$PWD/.config/direnv/" -name "*.sh" -type f -print0 |
9+
sort --zero-terminated |
10+
while IFS= read -d '' -r file; do
11+
source_env_if_exists "$file"
12+
done
13+
fi

.github/workflows/mega-linter.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,27 @@ jobs:
3232
workflow-file: ${{ steps.workflow.outputs.file }}
3333
github-token: ${{ github.token }}
3434

35+
skip-duplicate-actions:
36+
name: Skip Duplicate Actions
37+
runs-on: ubuntu-latest
38+
outputs:
39+
should-skip: ${{ steps.skip.outputs.should_skip }}
40+
steps:
41+
- id: skip
42+
name: Skip Duplicate Actions
43+
uses: fkirc/skip-duplicate-actions@v5
44+
with:
45+
concurrent_skipping: same_content_newer
46+
3547
mega-linter:
3648
name: MegaLinter
3749
permissions:
3850
contents: write # commit fix
3951
issues: write # ref: <https://megalinter.io/latest/reporters/GitHubCommentReporter/>
4052
pull-requests: write # ref: <https://megalinter.io/latest/reporters/GitHubCommentReporter/>
53+
needs:
54+
- skip-duplicate-actions
55+
if: needs.skip-duplicate-actions.outputs.should-skip != 'true'
4156
runs-on: ubuntu-latest
4257
concurrency:
4358
group: ${{ github.workflow }}-${{ github.ref }}-mega-linter

.github/workflows/pr.yaml

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)