Skip to content

Commit

Permalink
Update to latest way of setting outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
kzu authored Nov 15, 2022
1 parent 3db759a commit fcd059e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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
Expand All @@ -79,15 +79,15 @@ 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
echo "Using default BOT_NAME <BOT_EMAIL> as BOT_AUTHOR"
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

0 comments on commit fcd059e

Please sign in to comment.