.github/workflows/publish.yml in knife-ionoscloud-6.0.0.alpha.1 vs .github/workflows/publish.yml in knife-ionoscloud-6.0.0.beta.1
- old
+ new
@@ -44,12 +44,15 @@
- name: Get the old version
id: old_version
run: echo ::set-output name=VERSION::$(git tag --list "v*" --sort=version:refname | tail -n 2 | head -n 1)
+ - name: Get the release version
+ run: echo "RELEASE_VERSION=${GITHUB_REF:10}" >> $GITHUB_ENV
+
- name: Check Version
run: |
- if [ "${{ steps.new_version.outputs.VERSION }}" != v$(cat lib/knife-ionoscloud/version.rb | grep 'VERSION =' | tr -s ' ' | cut -d ' ' -f 4 | sed 's/^.//;s/.$//') ]; then
+ if [ $RELEASE_VERSION != v$(cat lib/knife-ionoscloud/version.rb | grep 'VERSION =' | tr -s ' ' | cut -d ' ' -f 4 | sed 's/^.//;s/.$//') ]; then
echo "Tag version does not match the one from version.rb!"
exit 1
fi
- name: Create RubyGems release of the Knife plugin