diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index 13d981b2f..dbe91ed1c 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -30,7 +30,7 @@ jobs: with: packages: jq - name: Save a copy of github.ref_name without periods to env var - run: echo "refNameSlug=${{ github.ref_name }}" | sed -e 's/\.//g' + run: echo "refNameSlug=${{ github.ref_name }}" | sed -e 's/\.//g' >> $GITHUB_ENV # Save old version - name: Find and save old major_version from manifest run: awk 'BEGIN { FS="=" } /^major_version/ { print "oldMajor="$2; }' manifest >> $GITHUB_ENV @@ -44,7 +44,7 @@ jobs: - name: Save new version to env var run: echo "newVersion=${{ env.oldMajor }}.${{ env.oldMinor }}.${{ env.newBuild }}" >> $GITHUB_ENV - name: Save a copy of newVersion without periods to env var - run: echo "newVersionSlug=${{ env.newVersion }}" | sed -e 's/\.//g' + run: echo "newVersionSlug=${{ env.newVersion }}" | sed -e 's/\.//g' >> $GITHUB_ENV # Update files with new versions - name: Update manifest build_version run: sed -i "s/build_version=.*/build_version=${{ env.newBuild }}/g" manifest @@ -81,7 +81,7 @@ jobs: with: packages: jq - name: Save a copy of github.ref_name without periods to env var - run: echo "refNameSlug=${{ github.ref_name }}" | sed -e 's/\.//g' + run: echo "refNameSlug=${{ github.ref_name }}" | sed -e 's/\.//g' >> $GITHUB_ENV # Save old version - name: Find and save old major_version from manifest run: awk 'BEGIN { FS="=" } /^major_version/ { print "oldMajor="$2; }' manifest >> $GITHUB_ENV @@ -95,7 +95,7 @@ jobs: - name: Save new version to env var run: echo "newVersion=${{ env.oldMajor }}.${{ env.newMinor }}.0" >> $GITHUB_ENV - name: Save a copy of newVersion without periods to env var - run: echo "newVersionSlug=${{ env.newVersion }}" | sed -e 's/\.//g' + run: echo "newVersionSlug=${{ env.newVersion }}" | sed -e 's/\.//g' >> $GITHUB_ENV # Update files with new versions - name: Update manifest minor_version run: sed -i "s/minor_version=.*/minor_version=${{ env.newMinor }}/g" manifest @@ -135,7 +135,7 @@ jobs: with: packages: jq - name: Save a copy of github.ref_name without periods to env var - run: echo "refNameSlug=${{ github.ref_name }}" | sed -e 's/\.//g' + run: echo "refNameSlug=${{ github.ref_name }}" | sed -e 's/\.//g' >> $GITHUB_ENV # Save old version - name: Find and save old major_version from manifest run: awk 'BEGIN { FS="=" } /^major_version/ { print "oldMajor="$2; }' manifest >> $GITHUB_ENV @@ -149,7 +149,7 @@ jobs: - name: Save new version to env var run: echo "newVersion=${{ env.newMajor }}.0.0" >> $GITHUB_ENV - name: Save a copy of newVersion without periods to env var - run: echo "newVersionSlug=${{ env.newVersion }}" | sed -e 's/\.//g' + run: echo "newVersionSlug=${{ env.newVersion }}" | sed -e 's/\.//g' >> $GITHUB_ENV # Update files with new versions - name: Update manifest major_version run: sed -i "s/major_version=.*/major_version=${{ env.newMajor }}/g" manifest