Skip to content

Commit 62ae8bd

Browse files
committed
update.sh: Consider entire src/rustdoc-json-types dir for commit hash
Previously, an update to `src/rustdoc-json-types` wouldn't update the commit hash in COMMIT.txt
1 parent 5ef8323 commit 62ae8bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

update.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ curl -# https://raw.githubusercontent.com/${user}/${repo}/${ref}/src/rustdoc-jso
2727

2828
curl -# https://raw.githubusercontent.com/${user}/${repo}/${ref}/src/rustdoc-json-types/tests.rs > src/tests.rs
2929

30-
curl -# "https://api.github.com/repos/${user}/${repo}/commits?sha=${ref}&path=src/rustdoc-json-types/lib.rs" | pyjq '[0]["sha"]' > COMMIT.txt
30+
curl -# "https://api.github.com/repos/${user}/${repo}/commits?sha=${ref}&path=src/rustdoc-json-types" | pyjq '[0]["sha"]' > COMMIT.txt

0 commit comments

Comments
 (0)