@@ -440,18 +440,23 @@ jobs:
440440 parseversion :
441441 name : Parse the master branch RTIC version
442442 runs-on : ubuntu-22.04
443+ outputs :
444+ branch : ${{ steps.parseversion.outputs.branch }}
445+ versionmajor : ${{ steps.parseversion.outputs.versionmajor }}
446+ version : ${{ steps.parseversion.outputs.version }}
443447 steps :
444448 - uses : actions/checkout@v3
445449
446450 - name : Get crate version and print output branch release/vX
447- id : crateversionbranch
451+ id : parseversion
448452 # Parse metadata for version number, extract the Semver Major
449453 run : |
450454 VERSION=$(cargo metadata --format-version 1 --no-deps --offline | jq -r '.packages[] | select(.name =="rtic") | .version')
451455 VERSIONMAJOR=${VERSION%.*.*}
452- echo "branch=release/v$VERSIONMAJOR" >> $GITHUB_ENV
453- echo "versionmajor=$VERSIONMAJOR" >> $GITHUB_ENV
454- echo "version=$VERSION" >> $GITHUB_ENV
456+ echo "branch=release/v$VERSIONMAJOR" >> "$GITHUB_OUTPUT"
457+ echo "versionmajor=$VERSIONMAJOR" >> "$GITHUB_OUTPUT"
458+ echo "version=$VERSION" >> "$GITHUB_OUTPUT"
459+
455460
456461
457462 # Update stable branch
@@ -473,6 +478,11 @@ jobs:
473478 # Only run this when pushing to master branch
474479 if : github.ref == 'refs/heads/master'
475480 steps :
481+ - env :
482+ branch : ${{ needs.parseversion.outputs.branch }}
483+ majorversion : ${{ needs.parseversion.outputs.majorversion }}
484+ version : ${{ needs.parseversion.outputs.version }}
485+
476486 - uses : actions/checkout@v3
477487
478488 - name : Push to stable release branch if master contains stable version
0 commit comments