diff --git a/.github/user-profile-schema-validation.json b/.github/user-profile-schema-validation.json new file mode 100644 index 0000000..2e63881 --- /dev/null +++ b/.github/user-profile-schema-validation.json @@ -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 +} + \ No newline at end of file diff --git a/.github/workflows/user-profile-validation.yml b/.github/workflows/user-profile-validation.yml new file mode 100644 index 0000000..05c9352 --- /dev/null +++ b/.github/workflows/user-profile-validation.yml @@ -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" \ No newline at end of file diff --git a/assets/profile-images/prudhvigodithi.jpg b/assets/profile-images/prudhvigodithi.jpg new file mode 100644 index 0000000..7769d59 Binary files /dev/null and b/assets/profile-images/prudhvigodithi.jpg differ diff --git a/user-profiles/prudhvigodithi.json b/user-profiles/prudhvigodithi.json new file mode 100644 index 0000000..855cea7 --- /dev/null +++ b/user-profiles/prudhvigodithi.json @@ -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" +}