Merge pull request #16 from tj-actions/updated-readme

This commit is contained in:
Tonye Jack 2021-02-15 13:21:01 -05:00 committed by GitHub
commit d8901557b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,16 +27,16 @@ Get branch information without the `/ref/*` prefix
uses: tj-actions/branch-names@v2.2 uses: tj-actions/branch-names@v2.2
- name: Running on the default branch. - name: Running on the default branch.
if: ${{ steps.branch-name.outputs.is_default }} if: steps.branch-name.outputs.is_default == 'true'
run: | run: |
echo "Running on default: ${{ steps.branch-name.outputs.is_default }}" echo "Running on default: ${{ steps.branch-name.outputs.current_branch }}"
# Outputs: "Running on default: true". # Outputs: "Running on default: main".
- name: Running on a pull request branch. - name: Running on a pull request branch.
if: "!${{ steps.branch-name.outputs.is_default }}" if: steps.branch-name.outputs.is_default == 'false'
run: | run: |
echo "Running on default: ${{ steps.branch-name.outputs.is_default }}" echo "Running on pr: ${{ steps.branch-name.outputs.current_branch }}"
# Outputs: "Running on default: false". # Outputs: "Running on pr: feature/test".
- name: Current branch name - name: Current branch name
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'