mirror of
https://github.com/tj-actions/branch-names.git
synced 2024-11-23 20:13:51 +08:00
Update test.yml
This commit is contained in:
parent
ae7cf1163a
commit
91ac570b9d
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -21,13 +21,13 @@ jobs:
|
||||
id: branch-name
|
||||
uses: ./
|
||||
- name: Show output
|
||||
if: "!startsWith(github.ref, 'refs/tags/')"
|
||||
run: |
|
||||
echo "Current Branch: ${{ steps.branch-name.outputs.current_branch }}"
|
||||
echo "Base Ref: ${{ steps.branch-name.outputs.base_ref_branch }}"
|
||||
echo "Head Ref: ${{ steps.branch-name.outputs.head_ref_branch }}"
|
||||
echo "Ref: ${{ steps.branch-name.outputs.ref_branch }}"
|
||||
echo "Is Default: ${{ steps.branch-name.outputs.is_default }}"
|
||||
echo "Current tag: ${{ steps.branch-name.outputs.tag }}"
|
||||
- name: Check is_default for pull request
|
||||
if: github.event_name == 'pull_request' && !startsWith(github.ref, 'refs/tags/') && steps.branch-name.outputs.is_default != 'false'
|
||||
run: |
|
||||
|
Loading…
Reference in New Issue
Block a user