Skip to content

Commit

Permalink
Update update-libarchive.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Nov 28, 2024
1 parent 37c98be commit 5f8f805
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/update-libarchive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:

- name: Check libarchive version
id: check-version
shell: bash
run: |
set -euxo pipefail
CURRENT_VERSION=$(grep -oP 'LIBARCHIVE_VERSION\s+\K\S+' cmake/targets/BuildLibArchive.cmake)
Expand All @@ -42,7 +43,9 @@ jobs:
- name: Update version if needed
if: success() && steps.check-version.outputs.current != steps.check-version.outputs.latest
shell: bash
run: |
set -euxo pipefail
sed -i "s/LIBARCHIVE_VERSION\s\+[0-9a-f]\+/LIBARCHIVE_VERSION ${{ steps.check-version.outputs.latest }}/" cmake/targets/BuildLibArchive.cmake
- name: Create Pull Request
Expand Down

0 comments on commit 5f8f805

Please sign in to comment.