Skip to content

Commit

Permalink
Generalize HTTP response
Browse files Browse the repository at this point in the history
  • Loading branch information
mwithi committed Oct 30, 2024
1 parent 1bf81ae commit bf52196
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 | grep "200 OK" > /dev/null; then
elif curl -s --head https://github.com/${GITHUB_ACTOR}/openhospital-core | grep "HTTP/[12].* 2[0-9][0-9]" > /dev/null; 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 bf52196

Please sign in to comment.