Update README.md

This commit is contained in:
Tonye Jack 2023-05-01 03:07:51 -06:00 committed by GitHub
parent e66b8b3a13
commit 0f4c59d1b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,14 +45,25 @@ on:
- name: Running on the default branch. - name: Running on the default branch.
if: steps.branch-name.outputs.is_default == 'true' if: steps.branch-name.outputs.is_default == 'true'
run: | run: |
echo "Running on default: ${{ steps.branch-name.outputs.current_branch }}" echo "Running on default: ${{ steps.branch-name.outputs.current_branch }}"
# Outputs: "Running on default: main". # 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 == 'false' if: steps.branch-name.outputs.is_default == 'false'
run: | run: |
echo "Running on pr: ${{ steps.branch-name.outputs.current_branch }}" echo "Running on pr: ${{ steps.branch-name.outputs.current_branch }}"
# Outputs: "Running on pr: feature/test". # Outputs: "Running on pr: feature/test"
- name: Running on a pull request branch.
if: steps.branch-name.outputs.is_default == 'false'
run: |
echo "Base branch: ${{ steps.branch-name.outputs.base_ref_branch }}"
# Outputs: "Base branch: main"
- name: Running on any event
run: |
echo "Default branch: ${{ steps.branch-name.outputs.default_branch }}"
# Outputs: "Default branch: main"
``` ```
If you feel generous and want to show some extra appreciation: If you feel generous and want to show some extra appreciation: