diff --git a/.github/scripts/validate_bicep.py b/.github/scripts/validate_bicep.py index 39d5b3cd7..b86553646 100644 --- a/.github/scripts/validate_bicep.py +++ b/.github/scripts/validate_bicep.py @@ -25,6 +25,13 @@ bicep_executable = os.path.join(bicep_path, bicep_bin) print(f"Using Bicep binary: {bicep_executable}", flush=True) +result = subprocess.run( + [bicep_executable, "--version"], + stderr=subprocess.PIPE, + stdout=subprocess.PIPE, +) +print(stdout, flush=True) +print(stderr, flush=True) files = [] failures = [] diff --git a/.github/workflows/validate-bicep.yaml b/.github/workflows/validate-bicep.yaml index bc9d4d7b8..6493bb0a6 100644 --- a/.github/workflows/validate-bicep.yaml +++ b/.github/workflows/validate-bicep.yaml @@ -29,12 +29,12 @@ jobs: name: Validate Bicep Code runs-on: ubuntu-latest steps: + - name: Check out repo + uses: actions/checkout@v4 - name: Setup and verify bicep CLI run: | curl -Lo rad-bicep https://github.com/Azure/bicep/releases/latest/download/bicep-linux-x64 chmod +x ./rad-bicep ./rad-bicep --version - - name: Check out repo - uses: actions/checkout@v4 - name: Verify Bicep files run: python ./.github/scripts/validate_bicep.py