This repository has been archived by the owner on Jul 28, 2024. It is now read-only.
data: raj007-star (#1937) #847
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Read/Write profiles' data" | |
on: [push] | |
jobs: | |
table: | |
runs-on: ubuntu-latest | |
name: Update README from json data | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "14" | |
cache: "npm" | |
- run: | | |
npm i | |
node generate.js | |
- name: "Read/Write profiles' data" | |
uses: EddieHubCommunity/gh-actions-html-table-generator@main | |
with: | |
json-file-path: ".cache/data.json" | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
columns: 3 | |
file-to-use: "profiles.md" | |
object-field-names: '[ "username", "name", "image", "issueId" ]' | |
html-cell: '<td align="center"><p><a href="https://github.com/{{ username }}">{{ name }}</a></p><img src="{{ image }}" alt="GitHub profile of {{ name }}" /><p><a href="https://github.com/EddieHubCommunity/awesome-github-profiles/issues/{{ issueId }}">(💯 give your vote)</a></p></td>' |