Skip to content

Commit

Permalink
updating validate workflow
Browse files Browse the repository at this point in the history
Signed-off-by: sk593 <[email protected]>
  • Loading branch information
sk593 committed Aug 9, 2024
1 parent 8bd1d65 commit 7c668bf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/scripts/validate_bicep.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ def validate_file(f):
stderr = result.stderr.decode("utf-8")
exitcode = result.returncode

warning_prefix = "WARNING: The following experimental Bicep features"
if stderr.startswith(warning_prefix) and "Error" not in stderr:
stderr = ""
exitcode = 0
# warning_prefix = "WARNING: The following experimental Bicep features"
# if stderr.startswith(warning_prefix) and "Error" not in stderr:
# stderr = ""
# exitcode = 0

if exitcode != 0:
failures.append(f)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate-bicep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ jobs:
- name: Check out repo
uses: actions/checkout@v4
- name: Verify Bicep files
run: python ./.github/scripts/validate_bicep.py
run: python3 ./.github/scripts/validate_bicep.py
2 changes: 1 addition & 1 deletion samples/demo/app.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ param environment string
param image string = 'ghcr.io/radius-project/samples/demo:latest'

resource demo 'Applications.Core/containers@2023-10-01-preview' = {
name: demo
name: 'demo'
properties: {
application: application
container: {
Expand Down

0 comments on commit 7c668bf

Please sign in to comment.