Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
bournezjc committed Nov 8, 2024
1 parent f1acb69 commit 2261c48
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,15 @@ jobs:
run: |
current_hash=$(git rev-parse HEAD)
remote_url=$(git remote get-url origin)
echo "remote_url: $remote_url"
if [[ $remote_url == https://* ]]; then
# For HTTPS URLs
repo_path=$(echo $remote_url | sed -E 's|https://github.com/(.+)\.git|\1|')
else
# For SSH URLs
repo_path=$(echo $remote_url | sed -E 's/.*:(.+)\.git/\1/')
fi
echo "repo_path: $repo_path"
fp_version=$(go list -m github.com/$repo_path@$current_hash)
git clone https://github.com/babylonlabs-io/finality-provider
Expand Down

0 comments on commit 2261c48

Please sign in to comment.