Skip to content

Commit

Permalink
ci: update azure-pipelines schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Jan 21, 2025
1 parent 04e5367 commit 49e0ada
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check-schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Scan repo
id: folders
run: python -c "import os; print('gh_actions=' + str(int(os.path.isdir('.github/actions'))))" >> $GITHUB_OUTPUT
run: python -c "import os; print('GH-ACTIONS=' + str(int(os.path.isdir('.github/actions'))))" >> $GITHUB_ENV

# https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/github-workflow.json
- name: GitHub Actions - workflow
Expand All @@ -68,7 +68,7 @@ jobs:
# https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/github-action.json
- name: GitHub Actions - action
if: steps.folders.outputs.gh_actions == '1'
if: env.GH-ACTIONS == '1'
run: |
files=$(find .github/actions -name '*.yml' -or -name '*.yaml')
for f in $files; do
Expand All @@ -80,7 +80,7 @@ jobs:
- name: Azure Pipelines
if: ${{ inputs.azure-dir != '' }}
env:
SCHEMA_FILE: https://raw.githubusercontent.com/microsoft/azure-pipelines-vscode/v1.208.0/service-schema.json
SCHEMA_FILE: https://raw.githubusercontent.com/microsoft/azure-pipelines-vscode/v1.249.0/service-schema.json
run: |
files=$(find ${{ inputs.azure-dir }} -name '*.yml' -or -name '*.yaml')
for f in $files; do
Expand Down

0 comments on commit 49e0ada

Please sign in to comment.