FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
ScratchAddons/.github/workflows/schema-validation.yml at patch-2 · rosics-code/ScratchAddons · GitHub
rosics-code
/
ScratchAddons
Public
forked from
ScratchAddons/ScratchAddons
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
ScratchAddons
/
.github
/
workflows
/
schema-validation.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
44 lines (38 loc) · 1.41 KB
Breadcrumbs
ScratchAddons
/
.github
/
workflows
/
schema-validation.yml
Copy path
File metadata and controls
44 lines (38 loc) · 1.41 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name
:
Validate addon manifest
on
:
push
:
paths
:
-
addons/*/addon.json
pull_request
:
paths
:
-
addons/*/addon.json
workflow_dispatch
:
jobs
:
sv
:
name
:
Validate
runs-on
:
ubuntu-latest
#
if: ! (github.event_name == 'schedule' && github.repository_owner == 'ScratchAddons')
steps
:
-
name
:
Checkout code
uses
:
actions/checkout@v4
-
name
:
Find changed files (push, PR)
if
:
github.event_name == 'push' || github.event_name == 'pull_request'
id
:
changed
uses
:
ScratchAddons/changed-files@master
with
:
pattern
:
'
^addons\/.*\/addon.json$
'
repo-token
:
${{ github.token }}
-
name
:
Validate .json with schema (changed)
if
:
github.event_name == 'push' || github.event_name == 'pull_request'
uses
:
ScratchAddons/validate-json-action@master
with
:
schema
:
https://raw.githubusercontent.com/ScratchAddons/manifest-schema/dist/schema.json
jsons
:
|
${{ steps.changed.outputs.files_created }}
${{ steps.changed.outputs.files_updated }}
-
name
:
Validate .json with schema (all)
if
:
"
! (github.event_name == 'push' || github.event_name == 'pull_request')
"
uses
:
ScratchAddons/validate-json-action@master
with
:
schema
:
https://raw.githubusercontent.com/ScratchAddons/manifest-schema/dist/schema.json
jsons
:
addons/*/addon.json
Back
|
FazBrowse Home
|
New Git URL