Update README.md

This commit is contained in:
Tonye Jack 2021-07-06 06:28:07 -04:00 committed by GitHub
parent c72f85696a
commit 1d221bb9b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,6 +91,10 @@ on:
echo "Running on branch: ${{ steps.branch-name.outputs.current_branch }}" echo "Running on branch: ${{ steps.branch-name.outputs.current_branch }}"
# Outputs: "Running on branch: main". # Outputs: "Running on branch: main".
- name: Get Ref brach name
run: |
echo "${{ steps.branch-name.outputs.ref_branch }}"
# Outputs: "main"
``` ```
* `pull_request*` * `pull_request*`
@ -123,6 +127,21 @@ on:
run: | run: |
echo "Running on branch: ${{ steps.branch-name.outputs.current_branch }}" echo "Running on branch: ${{ steps.branch-name.outputs.current_branch }}"
# Outputs: "Running on branch: feature/test". # Outputs: "Running on branch: feature/test".
- name: Get Ref brach name
run: |
echo "${{ steps.branch-name.outputs.ref_branch }}"
# Outputs: "1/merge"
- name: Get Head Ref branch name (i.e The current pull request branch)
run: |
echo "${{ steps.branch-name.outputs.head_ref_branch }}"
# Outputs: "feature/test" current PR branch.
- name: Get Base Ref branch name (i.e The target of a pull request.)
run: |
echo "${{ steps.branch-name.outputs.base_ref_branch }}"
# Outputs: "main".
``` ```
* `tag*` * `tag*`