Skip to content

Commit b10d1eb

Browse files
authored
ci: update azure-pipelines schema (#355)
* ci: update azure-pipelines schema * Revert "Revert "build(deps): update check-jsonschema requirement from ==0.30.* to ==0.31.* in /requirements (#352)"" This reverts commit 8fa0728. * Apply suggestions from code review
1 parent ff97cc5 commit b10d1eb

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/check-schema.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ jobs:
2626
uses: actions/checkout@v4
2727
with:
2828
submodules: recursive
29+
- name: Set up Python 🐍
30+
uses: actions/setup-python@v5
31+
with:
32+
python-version: "3.x"
2933

3034
# if actions version is given install defined versions
3135
- name: "[optional] Pull reusable 🤖 actions"
@@ -51,7 +55,7 @@ jobs:
5155
5256
- name: Scan repo
5357
id: folders
54-
run: python -c "import os; print('gh_actions=' + str(int(os.path.isdir('.github/actions'))))" >> $GITHUB_OUTPUT
58+
run: python -c "import os; print('GH-ACTIONS=' + str(int(os.path.isdir('.github/actions'))))" >> $GITHUB_ENV
5559

5660
# https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/github-workflow.json
5761
- name: GitHub Actions - workflow
@@ -64,7 +68,7 @@ jobs:
6468
6569
# https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/github-action.json
6670
- name: GitHub Actions - action
67-
if: steps.folders.outputs.gh_actions == '1'
71+
if: env.GH-ACTIONS == '1'
6872
run: |
6973
files=$(find .github/actions -name '*.yml' -or -name '*.yaml')
7074
for f in $files; do
@@ -76,7 +80,7 @@ jobs:
7680
- name: Azure Pipelines
7781
if: ${{ inputs.azure-dir != '' }}
7882
env:
79-
SCHEMA_FILE: https://raw.githubusercontent.com/microsoft/azure-pipelines-vscode/v1.208.0/service-schema.json
83+
SCHEMA_FILE: https://raw.githubusercontent.com/microsoft/azure-pipelines-vscode/v1.249.0/service-schema.json
8084
run: |
8185
files=$(find ${{ inputs.azure-dir }} -name '*.yml' -or -name '*.yaml')
8286
for f in $files; do

0 commit comments

Comments
 (0)