[5.x] Fix unique
validation rule
#175
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull Request Title | |
on: | |
pull_request: | |
types: [opened, edited, synchronize, reopened] | |
jobs: | |
pr-title: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Validate PR title | |
uses: deepakputhraya/action-pr-title@master | |
continue-on-error: true | |
id: validate-pr-title | |
with: | |
regex: '^\[\d+\.x\]\s' | |
# - name: Update PR title | |
# if: always() && (steps.validate-pr-title.outcome == 'failure') | |
# run: | | |
# echo "Updating PR title" | |
# curl -X PATCH \ | |
# -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ | |
# -H "Accept: application/vnd.github.v3+json" \ | |
# https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.number }} \ | |
# -d '{"title": "[${{ github.base_ref }}] ${{ github.event.pull_request.title }}"}' |