Skip to content

Commit

Permalink
Update blank.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
p3dr0rv authored Aug 22, 2024
1 parent 376ed29 commit ee96db0
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,30 @@ jobs:
uses: ad-m/github-push-action@master
with:
branch: ${{ steps.comment-branch.outputs.head_ref }}


update-pr-title:
needs: extract_ab
runs-on: ubuntu-latest
steps:
- name: Update PR title
uses: actions/github-script@v6
with:
script: |
const { data: pullRequest } = await github.pulls.get({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.payload.pull_request.number,
});
const newTitle = `${currentTitle} ${ABID}`;
await github.pulls.update({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.payload.pull_request.number,
title: newTitle,
});
console.log(`PR title updated to: ${newTitle}`);

0 comments on commit ee96db0

Please sign in to comment.