diff --git a/.github/workflows/bump-libs.yaml b/.github/workflows/bump-libs.yaml index ef6f2471442..f24a332f640 100644 --- a/.github/workflows/bump-libs.yaml +++ b/.github/workflows/bump-libs.yaml @@ -25,8 +25,9 @@ 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 "SHASUM=$(sha256sum master.tar.gz | awk '{print $1}')" >> "$GITHUB_OUTPUT" + gunzip -c master.tar.gz > master.tar + echo "COMMIT=$(cat master.tar | git get-tar-commit-id)" >> "$GITHUB_OUTPUT" - name: Checkout uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 @@ -36,14 +37,13 @@ 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 '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 '40s/SHA256="(.+)"/SHA256="${{ steps.store.outputs.SHASUM }}"/' cmake/modules/driver.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.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 - uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # v5.0.2 + uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5 with: path: falco signoff: true