YAML schema fix (#2505)

* yaml schema fix

* change yaml structure
This commit is contained in:
Hare Sudhan
2023-08-01 21:24:22 -04:00
committed by GitHub
parent c1a2085e18
commit a1d082bdbb
4 changed files with 10 additions and 13 deletions
+1 -5
View File
@@ -41,10 +41,6 @@ jobs:
let fs = require('fs');
const obj = JSON.parse(fs.readFileSync('./labels.json'));
console.log(obj)
const existingAssignees = await github.rest.issues.listAssignees({
owner: context.repo.owner,
repo: context.repo.repo,
});
if(obj.labels.length > 0){
await github.rest.issues.addLabels({
issue_number: obj.pr,
@@ -53,7 +49,7 @@ jobs:
labels: obj.labels
})
}
if(obj.maintainers.length > 0 && existingAssignees.data.length === 0){
if(obj.maintainers.length > 0){
await github.rest.issues.addAssignees({
issue_number: obj.pr,
owner: context.repo.owner,
+1 -2
View File
@@ -2,8 +2,7 @@ name: generate-svg-counter
on:
push:
branches:
- master
branches: ["master"]
jobs:
generate-counter:
+3 -6
View File
@@ -1,17 +1,14 @@
name: generate-docs
on:
push:
branches:
- master
branches: ["master"]
jobs:
generate-docs:
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v2
with:
token: ${{ secrets.PROTECTED_BRANCH_PUSH_TOKEN }}
ref: 'master'
uses: actions/checkout@v3
- name: setup ruby
uses: ruby/setup-ruby@v1
+5
View File
@@ -78,6 +78,8 @@ $defs:
enum:
- integer
- float
- Integer
- Float
default:
type:
- number
@@ -91,6 +93,9 @@ $defs:
- path
- url
- string
- Path
- Url
- String
default:
type:
- string