From 5f8f805db9ffdf538bca227a436c953a21d14494 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Wed, 27 Nov 2024 17:38:57 -0800 Subject: [PATCH] Update update-libarchive.yml --- .github/workflows/update-libarchive.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/update-libarchive.yml b/.github/workflows/update-libarchive.yml index aa452d1cc2..d20f12bd82 100644 --- a/.github/workflows/update-libarchive.yml +++ b/.github/workflows/update-libarchive.yml @@ -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) @@ -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