File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 5252 sudo apt-get install -y libsqlite3-dev
5353 - name : get version
5454 working-directory : ${{ matrix.package.path }}
55- run : echo ::set-env name= PACKAGE_VERSION:: $(sed -nE 's/^\s*version = "(.*?)"/\1/p' Cargo.toml)
55+ run : echo " PACKAGE_VERSION= $(sed -nE 's/^\s*version = \ "(.*?)\ "/\1/p' Cargo.toml)" >> $GITHUB_ENV
5656 - name : check published version
57- run : echo ::set-env name= PUBLISHED_VERSION:: $(cargo search ${{ matrix.package.registryName }} --limit 1 | sed -nE 's/^[^"]*"//; s/".*//1p' -)
57+ run : echo " PUBLISHED_VERSION= $(cargo search ${{ matrix.package.registryName }} --limit 1 | sed -nE 's/^[^\ "]*\ "//; s/\ ".*//1p' -)" >> $GITHUB_ENV
5858 - name : cargo login
5959 if : env.PACKAGE_VERSION != env.PUBLISHED_VERSION
6060 run : cargo login ${{ secrets.CRATE_TOKEN }}
You can’t perform that action at this time.
0 commit comments