Skip to content

Commit

Permalink
Guard sed to avoid errors on pg.
Browse files Browse the repository at this point in the history
  • Loading branch information
VersusFacit committed Mar 21, 2024
1 parent 1b78867 commit 48ff055
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/internal-archive-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,15 @@ jobs:
new_number=$((number + 1))
v="${base}${new_number}"
tee <<< "version = \"${v}\"" "${version_file}"
sed -i "s/^package_version = \".*\"/package_version = \"${v}\"/" "${setup_file}"
if [ -f "${setup_file}" ]; then
sed -i "s/^package_version = \".*\"/package_version = \"${v}\"/" "${setup_file}"
fi
else
v="${version_in_file}+build1"
tee <<< "version = \"${v}\"" "${version_file}"
sed -i "s/^package_version = \".*\"/package_version = \"${v}\"/" "${setup_file}"
if [ -f "${setup_file}" ]; then
sed -i "s/^package_version = \".*\"/package_version = \"${v}\"/" "${setup_file}"
fi
fi
################
Expand Down

0 comments on commit 48ff055

Please sign in to comment.