From c644b15bf39b1347f9faaf25d7aa44895867be59 Mon Sep 17 00:00:00 2001 From: Victor Nicolet Date: Fri, 27 Feb 2026 11:08:27 -0500 Subject: [PATCH] apt-get: run update before install Signed-off-by: Victor Nicolet --- .../run_example_use_cases_reusable.yml | 31 +++++++++---------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/.github/workflows/run_example_use_cases_reusable.yml b/.github/workflows/run_example_use_cases_reusable.yml index b18cac7..38d1564 100644 --- a/.github/workflows/run_example_use_cases_reusable.yml +++ b/.github/workflows/run_example_use_cases_reusable.yml @@ -1,14 +1,13 @@ name: Run example use cases on: - workflow_call: - inputs: - cedar_policy_ref: - required: true - type: string - cedar_examples_ref: - required: true - type: string - + workflow_call: + inputs: + cedar_policy_ref: + required: true + type: string + cedar_examples_ref: + required: true + type: string jobs: run_example_use_cases: name: Run example use cases @@ -30,7 +29,7 @@ jobs: ref: ${{ inputs.cedar_policy_ref }} path: ./cedar - name: protoc - run: sudo apt-get install protobuf-compiler + run: sudo apt-get update && sudo apt-get install protobuf-compiler - name: rustup run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} - name: Build cli @@ -39,12 +38,12 @@ jobs: - name: Run validation and authorization working-directory: ./cedar-example-use-cases run: | - export PATH="$PWD/../cedar/target/debug/":$PATH - echo $PATH - ./run.sh + export PATH="$PWD/../cedar/target/debug/":$PATH + echo $PATH + ./run.sh - name: Run validation and authorization for cedar-policy-language-in-action working-directory: ./cedar-policy-language-in-action run: | - export PATH="$PWD/../cedar/target/debug/":$PATH - echo $PATH - ./run.sh + export PATH="$PWD/../cedar/target/debug/":$PATH + echo $PATH + ./run.sh