Update README.md

This commit is contained in:
Tonye Jack 2023-11-01 01:00:38 -06:00 committed by GitHub
parent 3cd6ba9145
commit ab304d8562
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -212,13 +212,13 @@ on:
if: steps.branch-name.outputs.is_tag == 'true'
run: |
echo "Running on: ${{ steps.branch-name.outputs.tag }}"
# Outputs: "Running on: v0.0.1".
# Outputs: "Running on: 0.0.1".
- name: Get the current tag
if: steps.branch-name.outputs.is_tag == 'true' # Replaces: startsWith(github.ref, 'refs/tags/')
run: |
echo "${{ steps.branch-name.outputs.tag }}"
# Outputs: "v0.0.1" OR "0.0.1"
# Outputs: "0.0.1"
```
### Possible usage with [actions/checkout](https://github.com/actions/checkout):