A github action that retrieves the pull request branch name and sets it in the output for other actions to use. This fork allows us to set a custom limit that the outputted branch name will be.
Originally sourced from @mdecoleman/pr-branch-name
- uses: pactsafe/[email protected]
id: branch-name
with:
max-length: 25 # This is the maximum length of the branch name
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: echo ${{ steps.branch-name.outputs.branch }}
The scripts and documentation in this project are released under the MIT License