From 8aa8691a3d0a7186fcfe57a773d35fd436bf1f90 Mon Sep 17 00:00:00 2001 From: Najib <32004868+nishaq503@users.noreply.github.com> Date: Fri, 16 Feb 2024 12:15:34 -0500 Subject: [PATCH] fix: release action should no longer complain about dirty working directory (#519) --- .github/workflows/package-release.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/package-release.yml b/.github/workflows/package-release.yml index 49c1f95d9..841c77bb8 100644 --- a/.github/workflows/package-release.yml +++ b/.github/workflows/package-release.yml @@ -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* ]] @@ -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}