From 1bed57bf190b6d2c0e518d8422ef93446b3e3408 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Mon, 15 Feb 2021 13:19:33 -0500 Subject: [PATCH] Update README.md --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9d9a69c..a6b4d73 100644 --- a/README.md +++ b/README.md @@ -27,16 +27,16 @@ Get branch information without the `/ref/*` prefix uses: tj-actions/branch-names@v2.2 - name: Running on the default branch. - if: ${{ steps.branch-name.outputs.is_default }} + if: steps.branch-name.outputs.is_default == 'true' run: | - echo "Running on default: ${{ steps.branch-name.outputs.is_default }}" - # Outputs: "Running on default: true". + echo "Running on default: ${{ steps.branch-name.outputs.current_branch }}" + # Outputs: "Running on default: main". - name: Running on a pull request branch. - if: "!${{ steps.branch-name.outputs.is_default }}" + if: steps.branch-name.outputs.is_default == 'false' run: | - echo "Running on default: ${{ steps.branch-name.outputs.is_default }}" - # Outputs: "Running on default: false". + echo "Running on pr: ${{ steps.branch-name.outputs.current_branch }}" + # Outputs: "Running on pr: feature/test". - name: Current branch name if: github.event_name == 'pull_request'