Merge branch 'main' into upgrade-to-v2.2

This commit is contained in:
Tonye Jack 2021-02-14 08:19:52 -05:00 committed by GitHub
commit b50518e8bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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