mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Using github action contexts instead of gh CLI
Co-authored-by: Nicola Soranzo <nicola.soranzo@earlham.ac.uk>
This commit is contained in:
@@ -18,8 +18,8 @@ jobs:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
PR_NUMBER=${{ github.event.pull_request.number }}
|
||||
TARGET_BRANCH=$(gh pr view $PR_NUMBER --json baseRefName -q .baseRefName)
|
||||
PR_TITLE=$(gh pr view $PR_NUMBER --json title -q .title)
|
||||
TARGET_BRANCH="${{ github.base_ref }}"
|
||||
PR_TITLE="${{ github.event.pull_request.title }}"
|
||||
VERSION=$(echo $TARGET_BRANCH | grep -oP '\d+\.\d+')
|
||||
if [[ -n "$VERSION" && ! "$PR_TITLE" =~ ^\[$VERSION\] ]]; then
|
||||
NEW_TITLE="[$VERSION] $PR_TITLE"
|
||||
|
||||
Reference in New Issue
Block a user