Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 authored May 1, 2023
1 parent e66b8b3 commit 0f4c59d
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,25 @@ on:
- name: Running on the default branch.
if: steps.branch-name.outputs.is_default == 'true'
run: |
echo "Running on default: ${{ steps.branch-name.outputs.current_branch }}"
# Outputs: "Running on default: main".
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 == 'false'
run: |
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:
Expand Down

0 comments on commit 0f4c59d

Please sign in to comment.