Skip to content

Commit

Permalink
ci: update azure-pipelines schema (#355)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Borda authored Jan 28, 2025
1 parent ff97cc5 commit b10d1eb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/check-schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python 🐍
uses: actions/setup-python@v5
with:
python-version: "3.x"

# if actions version is given install defined versions
- name: "[optional] Pull reusable 🤖 actions"
Expand All @@ -51,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 @@ -64,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 @@ -76,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 b10d1eb

Please sign in to comment.