Skip to content

Commit

Permalink
Include tags in label
Browse files Browse the repository at this point in the history
  • Loading branch information
bitdivine committed Nov 15, 2023
1 parent 7b2513f commit 4fec88d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/import-candid
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import_did() {
local out_path="packages/${pkg}/candid/${out_filename}"
echo "Copying ${in_fullpath} -> REPO_ROOT/${out_path}"
{
echo "// Generated from IC repo commit ${IC_COMMIT} '${in_path}' by $(basename "${0}")"
echo "// Generated from IC repo commit ${IC_COMMIT}${IC_TAGS:+ (tags: ${IC_TAGS% })} '${in_path}' by $(basename "${0}")"
cat "$in_fullpath"
} >"${out_path}"
}
Expand Down Expand Up @@ -51,6 +51,7 @@ test -n "${IC_DIR:-}" || {
exit 1
} >&2
IC_COMMIT="$(cd "${IC_DIR}" && git rev-parse HEAD)"
IC_TAGS="$(cd "${IC_DIR}" && git tag --points-at HEAD | tr "\n" " ")"
THIS_SCRIPT_NAME="$(basename "$0")"

: Import canisters
Expand Down

0 comments on commit 4fec88d

Please sign in to comment.