From fcd059e5cebe7aff16252c4c5424e14abf959012 Mon Sep 17 00:00:00 2001 From: Daniel Cazzulino Date: Tue, 15 Nov 2022 17:13:03 -0300 Subject: [PATCH] Update to latest way of setting outputs See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ --- action.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/action.yml b/action.yml index 54bb798..8b22374 100644 --- a/action.yml +++ b/action.yml @@ -43,14 +43,14 @@ runs: fi echo "Using github_token from inputs" echo "GH_TOKEN=${{ inputs.github_token }}" >> $GITHUB_ENV - echo "::set-output name=bot-token::${{ inputs.github_token }}" + echo "bot-token=${{ inputs.github_token }}" >> $GITHUB_OUTPUT else echo "Using gh_token from inputs" echo "GH_TOKEN=${{ inputs.gh_token }}" >> $GITHUB_ENV - echo "::set-output name=bot-token::${{ inputs.gh_token }}" + echo "bot-token=${{ inputs.gh_token }}" >> $GITHUB_OUTPUT fi else - echo "::set-output name=bot-token::$GH_TOKEN" + echo "bot-token=$GH_TOKEN" >> $GITHUB_OUTPUT fi if [ -z "$BOT_NAME"] @@ -65,7 +65,7 @@ runs: fi echo "BOT_NAME=$BOT_NAME" >> $GITHUB_ENV fi - echo "::set-output name=bot-name::$BOT_NAME" + echo "bot-name=$BOT_NAME" >> $GITHUB_OUTPUT if [ -z "$BOT_EMAIL"] then @@ -79,7 +79,7 @@ runs: fi echo "BOT_EMAIL=$BOT_EMAIL" >> $GITHUB_ENV fi - echo "::set-output name=bot-email::$BOT_EMAIL" + echo "bot-email=$BOT_EMAIL" >> $GITHUB_OUTPUT if [ -z "$BOT_AUTHOR"] then @@ -87,7 +87,7 @@ runs: BOT_AUTHOR="$BOT_NAME <$BOT_EMAIL>" echo "BOT_AUTHOR=$BOT_AUTHOR" >> $GITHUB_ENV fi - echo "::set-output name=bot-author::$BOT_AUTHOR" + echo "bot-author=$BOT_AUTHOR" >> $GITHUB_OUTPUT git config --global user.name $BOT_NAME git config --global user.email $BOT_EMAIL \ No newline at end of file