Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Feb 8, 2021
1 parent 8f5a241 commit 83b3f1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ Get branch information without the `/ref/*` prefix
if: github.event_name == 'pull_request'
run: |
echo "${{ steps.branch-name.outputs.current_branch }}"
# Outputs: "feature/test" current PR branch or "main" the default branch that triggered the push event.
# Outputs: "feature/test" current PR branch.

- name: Current branch name
if: github.event_name == 'push'
run: |
echo "${{ steps.branch-name.outputs.current_branch }}"
# Outputs: "main" the current branch that triggered the action.
# Outputs: "main" the default branch that triggered the push event.

- name: Get Ref brach name
run: |
Expand Down

0 comments on commit 83b3f1a

Please sign in to comment.