Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
Signed-off-by: razzle <harry@razzle.cloud>
  • Loading branch information
Noxsios committed May 14, 2024
1 parent 02be569 commit 09f36ce
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cv.typ
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
margin: (x: 0.5in, y: 0.5in),
footer: [
#set text(8pt)
#let head = read(".git/HEAD").trim().split(": ").at(1)
#let head = read(".git/HEAD").trim()
#if head.contains(": ") {
head = head.split(": ").at(1).trim()
} else {
head = head.slice(0, 7)
}
#if head == "refs/heads/main" {
head = read(".git/refs/heads/main").trim().slice(0, 7)
}
Expand Down

0 comments on commit 09f36ce

Please sign in to comment.