Skip to content

Commit

Permalink
Add user profiles
Browse files Browse the repository at this point in the history
Signed-off-by: Prudhvi Godithi <[email protected]>
  • Loading branch information
prudhvigodithi committed Sep 11, 2024
1 parent 5b8057f commit 5f181a5
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/user-profile-schema-validation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"type": "object",
"properties": {
"name": { "type": "string" },
"github_username": { "type": "string" },
"opensearch_slack_username": { "type": "string" },
"company": { "type": "string" },
"location": { "type": "string" },
"profile_image": {
"type": "string",
"pattern": "^\\.\\./assets/profile-images/.*\\.jpg$"
}
},
"required": [
"name",
"github_username",
"opensearch_slack_username",
"company",
"location"
],
"additionalProperties": false
}
20 changes: 20 additions & 0 deletions .github/workflows/user-profile-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Validate User Profiles

on:
workflow_dispatch:
pull_request:
paths:
- 'user-profiles/*.json'

jobs:
json-yaml-validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: json-yaml-validate
id: json-yaml-validate
uses: GrantBirki/[email protected]
with:
json_schema: '.github/user-profile-schema-validation.json'
comment: "true"
Binary file added assets/profile-images/prudhvigodithi.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions user-profiles/prudhvigodithi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "Prudhvi Godithi",
"github_username": "prudhvigodithi",
"opensearch_slack_username": "prudhvi godithi",
"company": "Amazon",
"location": "Seattle WA",
"profile_image": "../assets/profile-images/prudhvigodithi.jpg"
}

0 comments on commit 5f181a5

Please sign in to comment.