Skip to content

Commit

Permalink
Merge pull request #1145 from PhenoApps/pr_merge_action_fix
Browse files Browse the repository at this point in the history
process pr merge fix
  • Loading branch information
trife authored Jan 22, 2025
2 parents 27b07f7 + 7eb49b1 commit 9510be1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/process-pr-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ on:
branches:
- main

env:
GH_TOKEN: ${{ secrets.ACTIONS_PAT }}

jobs:
determine-pr:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.ACTIONS_PAT }}
outputs:
pr_number: ${{ steps.check-pr.outputs.pr_number }}
steps:
Expand Down Expand Up @@ -46,7 +47,7 @@ jobs:
runs-on: ubuntu-latest
needs: determine-pr
outputs:
bump_type: ${{ steps.extract-bump.outputs.bump_type }}
bump_type: ${{ steps.extract-details.outputs.bump_type }}
if: needs.determine-pr.outputs.pr_number != ''
steps:
- name: Checkout repository
Expand Down Expand Up @@ -75,7 +76,7 @@ jobs:
echo "release_note=${release_note}" >> $GITHUB_OUTPUT
# Determine change type
change_type=$(echo "$pr_body" | grep -oP '(?<=- \[x\] `)[A-Z]+(?=`)' | head -n 1)
change_type=$(echo "$pr_body" | grep -oP '(?<=- \[x\] \*\*`)[A-Z]+(?=`\*\*)' | head -n 1)
echo "Change Type: $change_type"
case "$change_type" in
"ADDITION")
Expand Down

0 comments on commit 9510be1

Please sign in to comment.