Skip to content

Commit

Permalink
Add user profiles
Browse files Browse the repository at this point in the history
Signed-off-by: Prudhvi Godithi <pgodithi@amazon.com>
  • Loading branch information
prudhvigodithi committed Sep 11, 2024
1 parent 5b8057f commit dd232c1
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/user-profile-schema-validation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"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/json-yaml-validate@v3.2.1
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 dd232c1

Please sign in to comment.