From af91b3858b5f8059a697098798f171eaed3c2885 Mon Sep 17 00:00:00 2001 From: Federico Di Pierro Date: Mon, 7 Oct 2024 11:45:00 +0200 Subject: [PATCH] fix(ci): fixed bump-libs workflow syntax. Signed-off-by: Federico Di Pierro --- .github/workflows/bump-libs.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/bump-libs.yaml b/.github/workflows/bump-libs.yaml index ef6f2471442..e35ba1f0b78 100644 --- a/.github/workflows/bump-libs.yaml +++ b/.github/workflows/bump-libs.yaml @@ -25,8 +25,8 @@ jobs: - name: Store libs hash and shasum id: store run: | - echo "COMMIT=$(gunzip < libs-master.tar.gz | git get-tar-commit-id)" >> "$GITHUB_OUTPUT" - echo "SHASUM=$(sha256sum libs-master.tar.gz)" >> "$GITHUB_OUTPUT" + echo "COMMIT=$(gunzip < master.tar.gz | git get-tar-commit-id)" >> "$GITHUB_OUTPUT" + echo "SHASUM=$(sha256sum master.tar.gz)" >> "$GITHUB_OUTPUT" - name: Checkout uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 @@ -36,10 +36,9 @@ jobs: - name: Bump libs version and hash run: | cd falco - sed -i -E '45s/FALCOSECURITY_LIBS_VERSION "(.+)"/FALCOSECURITY_LIBS_VERSION "${{ steps.commit.outputs.COMMIT }}"/' cmake/modules/falcosecurity-libs.cmake + sed -i -E '45s/FALCOSECURITY_LIBS_VERSION "(.+)"/FALCOSECURITY_LIBS_VERSION "${{ steps.store.outputs.COMMIT }}"/' cmake/modules/falcosecurity-libs.cmake sed -i -E '47s/SHA256="(.+)"/SHA256="${{ steps.store.outputs.SHASUM }}"/' cmake/modules/falcosecurity-libs.cmake - - sed -i -E '38s/DRIVER_VERSION "(.+)"/DRIVER_VERSION "${{ steps.commit.outputs.COMMIT }}"/' cmake/modules/driver.cmake + sed -i -E '38s/DRIVER_VERSION "(.+)"/DRIVER_VERSION "${{ steps.store.outputs.COMMIT }}"/' cmake/modules/driver.cmake sed -i -E '40s/SHA256="(.+)"/SHA256="${{ steps.store.outputs.SHASUM }}"/' cmake/modules/driver.cmake - name: Create Pull Request