Skip to content

Commit

Permalink
Fix readme txt version (#5200)
Browse files Browse the repository at this point in the history
* chore(re-version.sh): update sed command to replace "release-SNAPSHOT" with the current version in .txt files

The sed command in the re-version.sh script is updated to replace "release-SNAPSHOT" with the current version in .txt files. This ensures that the version information is correctly updated in the files during the re-versioning process.

* fix(re-version.sh): remove duplicate sed command to improve efficiency and readability

---------

Co-authored-by: jandroav <jandroav@icloud.com>
  • Loading branch information
filipelautert and jandroav authored Nov 13, 2023
1 parent a30d32e commit 4853219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/util/re-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,6 @@ mkdir $workdir/tgz-repackage
(cd $workdir/tgz-repackage && tar -xzf $workdir/liquibase-$branch-SNAPSHOT.tar.gz)
cp $workdir/internal/lib/liquibase-core.jar $workdir/tgz-repackage/internal/lib/liquibase-core.jar
cp $workdir/internal/lib/liquibase-commercial.jar $workdir/tgz-repackage/internal/lib/liquibase-commercial.jar
find $workdir/tgz-repackage -name "*.txt" -exec sed -i -e "s/0-SNAPSHOT/$version/" {} \;
find $workdir/tgz-repackage -name "*.txt" -exec sed -i -e "s/0-SNAPSHOT/$version/" -e "s/release-SNAPSHOT/$version/" {} \;
(cd $workdir/tgz-repackage && tar -czf $outdir/liquibase-$version.tar.gz *)
(cd $workdir/tgz-repackage && zip -qr $outdir/liquibase-$version.zip *)

0 comments on commit 4853219

Please sign in to comment.