Skip to content

Commit

Permalink
Drop .git suffix from custom urls
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Nov 19, 2024
1 parent 5d91a69 commit d6919ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ runs:
locked="$(echo "$in" | jq -r .path | sed -e "s|^/|.\"|" -e "s/\(.\)\//\1\"\.\"/g" -e "s|\.\"rev$||g")"; \
old_rev="$(jq -r "$locked.rev" '"$before_flake_lock"')"; \
new_rev="$(echo "$in" | jq -r .value)"; \
path="$(jq -r "$locked | \"\(if .type == \"github\" then \"https://\(.host // \"github.com\")/\(.owner)/\(.repo)\" else if .type == \"git\" then .url else \"error\" end end)/compare\"" flake.lock)"; \
path="$(jq -r "$locked | \"\(if .type == \"github\" then \"https://\(.host // \"github.com\")/\(.owner)/\(.repo)\" else if .type == \"git\" then .url | sub(\".git$\"; \"\") else \"error\" end end)/compare\"" flake.lock)"; \
echo "- $path/$old_rev...$new_rev" \
' "" >> comment.md
Expand Down

0 comments on commit d6919ca

Please sign in to comment.