File tree 4 files changed +55
-0
lines changed
4 files changed +55
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Check Action Metadata
2
+
3
+ # See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
4
+ on :
5
+ push :
6
+ paths :
7
+ - " .github/workflows/check-action-metadata-task.yml"
8
+ - " action.yml"
9
+ - " Taskfile.yml"
10
+ pull_request :
11
+ paths :
12
+ - " .github/workflows/check-action-metadata-task.yml"
13
+ - " action.yml"
14
+ - " Taskfile.yml"
15
+ schedule :
16
+ # Run every Tuesday at 8 AM UTC to catch breakage from changes to the JSON schema.
17
+ - cron : " 0 8 * * TUE"
18
+ workflow_dispatch :
19
+ repository_dispatch :
20
+
21
+ jobs :
22
+ validate :
23
+ runs-on : ubuntu-latest
24
+
25
+ steps :
26
+ - name : Checkout repository
27
+ uses : actions/checkout@v2
28
+
29
+ - name : Install Taskfile
30
+ uses : arduino/actions/setup-taskfile@master
31
+ with :
32
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
33
+ version : 3.x
34
+
35
+ - name : Validate action.yml
36
+ run : task action:validate
Original file line number Diff line number Diff line change 1
1
# ` arduino/setup-taskfile `
2
2
3
3
[ ![ Integration Tests status] ( https://github.com/arduino/setup-taskfile/actions/workflows/test-integration.yml/badge.svg )] ( https://github.com/arduino/setup-taskfile/actions/workflows/test-integration.yml )
4
+ [ ![ Check Action Metadata status] ( https://github.com/arduino/setup-taskfile/actions/workflows/check-action-metadata-task.yml/badge.svg )] ( https://github.com/arduino/setup-taskfile/actions/workflows/check-action-metadata-task.yml )
4
5
[ ![ Check License status] ( https://github.com/arduino/setup-taskfile/actions/workflows/check-license.yml/badge.svg )] ( https://github.com/arduino/setup-taskfile/actions/workflows/check-license.yml )
5
6
6
7
This action makes the ` task ` binary available to Workflows.
Original file line number Diff line number Diff line change
1
+ version : " 3"
2
+
3
+ vars :
4
+ ACTION_METADATA_SCHEMA_PATH : " $(mktemp -t github-action-schema-XXXXXXXXXX.json)"
5
+
6
+ tasks :
7
+ check :
8
+ desc : Check for problems with the project
9
+ deps :
10
+ - task : action:validate
11
+
12
+ action:validate :
13
+ desc : Validate GitHub Actions metadata against JSON schema
14
+ cmds :
15
+ - wget --output-document={{ .ACTION_METADATA_SCHEMA_PATH }} https://json.schemastore.org/github-action
16
+ - npx ajv-cli validate --strict=false -s {{ .ACTION_METADATA_SCHEMA_PATH }} -d "action.yml"
Original file line number Diff line number Diff line change @@ -4,9 +4,11 @@ author: 'Arduino'
4
4
inputs :
5
5
version :
6
6
description : ' Version to use. Example: 3.4.2'
7
+ required : false
7
8
default : ' 3.x'
8
9
repo-token :
9
10
description : " Token with permissions to do repo things"
11
+ required : false
10
12
11
13
runs :
12
14
using : ' node12'
You can’t perform that action at this time.
0 commit comments