Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Closed #1943 #1946

Closed
wants to merge 13 commits into from
36 changes: 23 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,35 @@
name: "Read/Write profiles' data"
on: [push]
name: Read/Write profiles' data

on:
push:
branches:
- main

jobs:
table:
runs-on: ubuntu-latest
name: Update README from json data

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Check out code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "14"
cache: "npm"
- run: |
npm i
node-version: '14'
cache: 'npm'

- name: Install dependencies and generate data
run: |
npm ci
node generate.js
- name: "Read/Write profiles' data"

- name: Generate HTML Table
uses: EddieHubCommunity/gh-actions-html-table-generator@main
with:
json-file-path: ".cache/data.json"
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" ]'
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>'
8 changes: 8 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
6 changes: 3 additions & 3 deletions profiles/Bylickilabs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"image": "https://user-images.githubusercontent.com/109308073/209451382-c2c90f77-0c2a-45dc-bd06-1f5418910dd9.jpg",
"issueId": 1588,
"image": "https://user-images.githubusercontent.com/109308073/208296882-ea239594-81ea-419f-ae6f-e3470ccc9a3e.png",
"issueId": 1573,
"name": "Thorsten Bylicki",
"username": "Bylickilabs"
"username": "bylickilabs"
}