Update action.yml

This commit is contained in:
Tonye Jack 2023-05-15 14:19:36 -06:00 committed by GitHub
parent 4d9f7b7bce
commit 41584fbfb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,9 +75,9 @@ runs:
if [[ "${{ github.ref }}" != "refs/tags/"* ]]; then if [[ "${{ github.ref }}" != "refs/tags/"* ]]; then
if [[ ${{ github.event_name }} == *"pull_request"* ]]; then if [[ ${{ github.event_name }} == *"pull_request"* ]]; then
if [[ -z "$GITHUB_OUTPUT" ]]; then if [[ -z "$GITHUB_OUTPUT" ]]; then
echo "::set-output name=current_branch::${{ steps.branch.outputs.head_ref }}" echo "::set-output name=current_branch::${{ steps.branch.outputs.head_ref_branch }}"
else else
echo "current_branch=${{ steps.branch.outputs.head_ref }}" >> "$GITHUB_OUTPUT" echo "current_branch=${{ steps.branch.outputs.head_ref_branch }}" >> "$GITHUB_OUTPUT"
fi fi
else else
if [[ -z "$GITHUB_OUTPUT" ]]; then if [[ -z "$GITHUB_OUTPUT" ]]; then