Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Mar 22, 2022
1 parent e50a5dd commit f3d66a1
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ on:
run: |
echo "${{ steps.branch-name.outputs.ref_branch }}"
# Outputs: "main"

- name: Default branch name
run: |
echo "${{ steps.branch-name.outputs.default_branch }}"
# Outputs: "main" the default branch.
```

* `pull_request*`
Expand Down Expand Up @@ -160,7 +165,7 @@ on:
echo "Running on branch: ${{ steps.branch-name.outputs.current_branch }}"
# Outputs: "Running on branch: feature/test".

- name: Get Ref brach name
- name: Get Ref branch name
run: |
echo "${{ steps.branch-name.outputs.ref_branch }}"
# Outputs: "1/merge"
Expand All @@ -174,6 +179,11 @@ on:
run: |
echo "${{ steps.branch-name.outputs.base_ref_branch }}"
# Outputs: "main".

- name: Default branch name
run: |
echo "${{ steps.branch-name.outputs.default_branch }}"
# Outputs: "main" the default branch.
```

* `tag*`
Expand Down

0 comments on commit f3d66a1

Please sign in to comment.