Skip to content

Commit

Permalink
Merge pull request #5 from zowe/user/markackert/set-output-replacement
Browse files Browse the repository at this point in the history
Replace set-output with $GITHUB_OUTPUT
  • Loading branch information
MarkAckert authored May 30, 2023
2 parents f8c53a4 + d9a1cc0 commit dff40ec
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/nightly-v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ jobs:
DAYOFWEEK=$(date +"%a")
if [[ "$DAYOFWEEK" == "${{ env.DAY_RUN_BLD_FULL_TEST }}" ]] ; then
echo RUN_BUILD=YES >> $GITHUB_ENV
echo "::set-output name=INSTALL_TEST::Zowe Release Tests"
echo "INSTALL_TEST=Zowe Release Tests" >> $GITHUB_OUTPUT
echo "Today is $DAYOFWEEK, need to run build and full release test suite"
else
echo "::set-output name=INSTALL_TEST::Zowe Nightly Tests"
echo "INSTALL_TEST=Zowe Nightly Tests" >> $GITHUB_OUTPUT
echo "Today is $DAYOFWEEK, do not need to run build and full release test suite"
fi
Expand All @@ -56,7 +56,7 @@ jobs:
time-difference-threshold-min: ${{ env.FORCE_BUILD_TIME_THRESHOLD }}

- id: set-outputs
run: echo "::set-output name=RUN_BUILD::${{ env.RUN_BUILD }}"
run: echo "RUN_BUILD=${{ env.RUN_BUILD }}" >> $GITHUB_OUTPUT

outputs:
RUN_BUILD: ${{ steps.set-outputs.outputs.RUN_BUILD }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ jobs:
run: |
private_keyfile_path="${{ runner.temp }}/private.key"
echo "${{ secrets.GPG_PRIVATE_KEY }}" > $private_keyfile_path
echo ::set-output name=PRIVATE_KEYFILE_PATH::$private_keyfile_path
echo PRIVATE_KEYFILE_PATH=$private_keyfile_path >> $GITHUB_OUTPUT
- name: '[Sign 3 - formal release or force sign only!] Actual sign work'
if: ${{ env.IS_FORMAL_RELEASE == 'true' || github.event.inputs.force-sign == 'true' }}
Expand Down Expand Up @@ -228,7 +228,7 @@ jobs:
echo -e "${RED}\n missing zowe revision - it is not parsed properly, please check step: [Validate] Print promote-artifacts.json to find out what went wrong"
exit 1
fi
echo ::set-output name=ZOWE_REVISION::$zowe_revision
echo ZOWE_REVISION=$zowe_revision >> $GITHUB_OUTPUT
- name: '[Tag 2 - formal release or force tag only!] Clone master branch to prepare for tagging'
if: ${{ env.IS_FORMAL_RELEASE == 'true' || github.event.inputs.force-tag == 'true' }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ jobs:
run: |
private_keyfile_path="${{ runner.temp }}/private.key"
echo "${{ secrets.GPG_PRIVATE_KEY }}" > $private_keyfile_path
echo ::set-output name=PRIVATE_KEYFILE_PATH::$private_keyfile_path
echo PRIVATE_KEYFILE_PATH=$private_keyfile_path >> $GITHUB_OUTPUT
- name: '[Sign 3 - formal release or force sign only!] Actual sign work'
if: ${{ env.IS_FORMAL_RELEASE == 'true' || github.event.inputs.force-sign == 'true' }}
Expand Down Expand Up @@ -232,7 +232,7 @@ jobs:
echo -e "${RED}\n missing zowe revision - it is not parsed properly, please check step: [Validate] Print promote-artifacts.json to find out what went wrong"
exit 1
fi
echo ::set-output name=ZOWE_REVISION::$zowe_revision
echo ZOWE_REVISION=$zowe_revision >> $GITHUB_OUTPUT
- name: '[Tag 2 - formal release or force tag only!] Clone master branch to prepare for tagging'
if: ${{ env.IS_FORMAL_RELEASE == 'true' || github.event.inputs.force-tag == 'true' }}
Expand Down

0 comments on commit dff40ec

Please sign in to comment.