fix: issue with jenkinsfile not aborting if gha is aborted #4163
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: rename-auto-cherry-pick-pr | |
on: pull_request | |
permissions: | |
pull-requests: write | |
# This job will remove the AUTO: prefix from the PR title | |
jobs: | |
rename-auto-cherry-pick-pr: | |
runs-on: ubuntu-latest | |
if: startsWith(github.event.pull_request.title, 'AUTO:') | |
steps: | |
- name: Make title semantic | |
run: | | |
TITLE="$PR_TITLE" | |
SEMANTIC_TITLE="${TITLE/AUTO: /}" | |
echo "renaming pr to: $SEMANTIC_TITLE" | |
gh pr edit ${{github.event.pull_request.html_url}} --title "$SEMANTIC_TITLE" | |
env: | |
GH_TOKEN: ${{secrets.OTTO_THE_BOT_GH_TOKEN}} | |
PR_TITLE: ${{github.event.pull_request.title}} |