Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: sk593 <[email protected]>
  • Loading branch information
sk593 committed Aug 19, 2024
1 parent 0150e28 commit 4d3a270
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/scripts/validate_bicep.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/validate-bicep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4d3a270

Please sign in to comment.