Skip to content

Commit

Permalink
Attempts to fix some issues with workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MonsterDruide1 committed Feb 27, 2024
1 parent adade9f commit 109fd17
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/clean-headers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/copy-headers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/progress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 109fd17

Please sign in to comment.