Skip to content

Commit

Permalink
fix: release action should no longer complain about dirty working dir…
Browse files Browse the repository at this point in the history
…ectory (#519)
  • Loading branch information
nishaq503 authored Feb 16, 2024
1 parent a760bf0 commit 8aa8691
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/package-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ jobs:
for pkg_dir in ${{ needs.package-filter.outputs.list }}
do
echo "Bumping version for ${pkg_dir}"
echo "cd-ing to ${pkg_dir}"
cd "${pkg_dir}"
# check if the package has a dev version
if [[ "$(cat VERSION)" != *dev* ]]
Expand All @@ -111,12 +110,7 @@ jobs:
echo "::error::${msg}" && exit 1
fi
else
bump2version release --no-commit
fi
# check if the package has been released and update the output
if [[ $(git status --porcelain) ]]
then
bump2version release --no-commit --allow-dirty
released_packages="${released_packages} ${pkg_dir}"
fi
cd ${cur_dir}
Expand Down

0 comments on commit 8aa8691

Please sign in to comment.