You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Regex Replace
v1.0
- name: Name of branch
id: branch
uses: ashley-taylor/[email protected]
with:
value: ${{ github.ref }}
regex: ".*/"
replacement: ""
- name: branch
run: branch "${{ steps.branch.outputs.value }}"