Skip to content

Commit

Permalink
Fix PR-number in headers repo workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MonsterDruide1 committed Feb 27, 2024
1 parent 5e41692 commit 1e832f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/clean-headers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ jobs:
run: |
if [[ $GITHUB_EVENT_NAME == 'pull_request_target' ]]
then
echo "REF: $GITHUB_REF_NAME, attempted match: `expr match "$GITHUB_REF_NAME" '.*\(^[0-9]*\)/'`"
echo "HEADER_BRANCH=pr-`expr match "$GITHUB_REF_NAME" '.*\(^[0-9]*\)/'`" >> "$GITHUB_ENV"
echo "HEADER_BRANCH=pr-$PR_NUM" >> "$GITHUB_ENV"
else
echo "HEADER_BRANCH=$DELETED_BRANCH" >> "$GITHUB_ENV"
fi
env:
DELETED_BRANCH: ${{ github.event.ref }}
PR_NUM: ${{ github.event.number }}
- name: Delete branch from OdysseyHeaders
run: |
cd OdysseyHeaders
Expand Down

0 comments on commit 1e832f6

Please sign in to comment.