Skip to content

Commit

Permalink
Try another way
Browse files Browse the repository at this point in the history
  • Loading branch information
mwithi committed Oct 30, 2024
1 parent ca44318 commit 15545c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
# Determine FORK_REPO with fallback logic
if [[ -n "${GITHUB_HEAD_REPOSITORY}" ]]; then
echo "FORK_REPO=${GITHUB_HEAD_REPOSITORY}" >> $GITHUB_ENV
elif curl -s --head https://github.com/${GITHUB_ACTOR}/openhospital-core/tree/${{ env.BRANCH_NAME }} | grep "HTTP/[12].* 2[0-9][0-9]" > /dev/null; then
elif curl -s -o /dev/null -w "%{http_code}" "https://github.com/${GITHUB_ACTOR}/tree/$BRANCH_NAME" | grep -q "200"; then
echo "FORK_REPO=${GITHUB_ACTOR}/openhospital-core" >> $GITHUB_ENV
else
echo "FORK_REPO=informatici/openhospital-core" >> $GITHUB_ENV
Expand Down

0 comments on commit 15545c5

Please sign in to comment.