Skip to content

Commit 3f324ef

Browse files
committed
Fix typo: DEST -> DEST_DIR
1 parent 469da35 commit 3f324ef

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/update-colors.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Get/Update Primer Color Primitives
22

33
env:
4-
_DEST: '${{ github.workspace }}/lua/github-theme/palette/primitives'
4+
_DEST_DIR: '${{ github.workspace }}/lua/github-theme/palette/primitives'
55
_JSON_DIR: '${{ github.workspace }}/node_modules/@primer/primitives/dist/json/colors'
66
_LICENSE_GLOB: '${{ github.workspace }}/node_modules/@primer/primitives/[Ll][Ii][Cc][Ee][Nn][Ss][Ee]*'
77
_PRIMITIVES_PKGJSON: '${{ github.workspace }}/node_modules/@primer/primitives/package.json'
@@ -29,19 +29,21 @@ jobs:
2929
set -u +f
3030
shopt -s nocaseglob failglob
3131
license="$(<$_LICENSE_GLOB)"
32-
mkdir -p "$_DEST"
32+
rm -r "$_DEST_DIR" || :
33+
mkdir -p "$_DEST_DIR"
3334
cd "$_JSON_DIR"
3435
3536
if jq -e .version "$_PRIMITIVES_PKGJSON"; then
3637
version="M._VERSION = vim.json.decode([=[$(jq -e .version "$_PRIMITIVES_PKGJSON")]=], { luanil = { object = false, array = false } })"
3738
fi
3839
3940
for file in *.json; do
40-
cat >"${_DEST_DIR}/${file%.json}.lua" <<EOF
41+
cat >|"${_DEST_DIR}/${file%.json}.lua" <<EOF
4142
-- NOTE: THIS IS AN AUTO-GENERATED FILE. DO NOT EDIT BY-HAND.
4243
local M = vim.json.decode([=[$(<"$file")]=], { luanil = { object = false, array = false } })
4344
${version-}
44-
M._LICENSE = [=[$license]=]
45+
M._LICENSE = [=[
46+
$license]=]
4547
return M
4648
EOF
4749
done

0 commit comments

Comments
 (0)