I managed to get the title of my Pull Request. But now I need to grab only part of the title.
Example, this is my title:
- Test: AB#16845 try to return PR number
and I just need this part of the title,
AB#16845
How could I do it?
jobs:
print_title_of_pr:
runs-on: [self-hosted, linux, x64, dev]
steps:
- name : Print Title of PR
run: echo The Title of your PR is ${{ github.event.pull_request.title }}