Attempts to fix some issues with workflow (#22)

This commit is contained in:
MonsterDruide1 2024-02-27 21:58:27 +01:00 committed by GitHub
parent adade9feb4
commit 5e416927a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 2 deletions

View File

@ -24,10 +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"
else
echo "HEADER_BRANCH=$GITHUB_REF_NAME" >> "$GITHUB_ENV"
echo "HEADER_BRANCH=$DELETED_BRANCH" >> "$GITHUB_ENV"
fi
env:
DELETED_BRANCH: ${{ github.event.ref }}
- name: Delete branch from OdysseyHeaders
run: |
cd OdysseyHeaders

View File

@ -34,6 +34,7 @@ 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"
else
echo "HEADER_BRANCH=$GITHUB_REF_NAME" >> "$GITHUB_ENV"

View File

@ -13,7 +13,7 @@ jobs:
with:
submodules: recursive
- name: Set up dependencies
run: sudo apt install -y ninja-build cmake ccache clang curl libncurses5
run: sudo apt update && sudo apt install -y ninja-build cmake ccache clang curl libncurses5
- name: Set up python
uses: actions/setup-python@v4
with: