All Projects → EddieHubCommunity → gh-actions-html-table-generator

EddieHubCommunity / gh-actions-html-table-generator

Licence: MIT license
Read from a json file and write to the README

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to gh-actions-html-table-generator

actions
Collection of repetitive GitHub Actions
Stars: ✭ 12 (-58.62%)
Mutual labels:  actions, action
setup-lazarus
Set up your GitHub Actions workflow with a specific version of Lazarus
Stars: ✭ 29 (+0%)
Mutual labels:  actions, action
jest-github-action
Jest action adding checks with annotations to your pull requests and coverage table as comments
Stars: ✭ 134 (+362.07%)
Mutual labels:  actions, action
clojure-dependency-update-action
A simple GitHub Actions job to create Pull Requests for outdated dependencies in clojure projects
Stars: ✭ 37 (+27.59%)
Mutual labels:  actions, action
k-redux-factory
Factory of Redux reducers and their associated actions and selectors.
Stars: ✭ 18 (-37.93%)
Mutual labels:  actions, action
deployer-php-action
Deploy PHP projects using Deployer from Github Actions
Stars: ✭ 57 (+96.55%)
Mutual labels:  actions, action
ssh2actions
Connect to GitHub Actions VM via SSH for interactive debugging
Stars: ✭ 62 (+113.79%)
Mutual labels:  actions, action
chrome-extension-upload
upload & publish extensions to the Chrome Web Store.
Stars: ✭ 35 (+20.69%)
Mutual labels:  actions, action
action-sync-node-meta
GitHub Action that syncs package.json with the repository metadata.
Stars: ✭ 25 (-13.79%)
Mutual labels:  actions, action
action-autotag
Automatically generate a new tag when the manifest file (package.json, Dockerfile, custom file, etc) version changes.
Stars: ✭ 45 (+55.17%)
Mutual labels:  actions, action
setup-hashlink
A github action to install and setup Hashlink
Stars: ✭ 13 (-55.17%)
Mutual labels:  actions, action
upx-action
Strips and runs upx on binaries
Stars: ✭ 17 (-41.38%)
Mutual labels:  actions, action
setup-jdk
(DEPRECATED) Set up your GitHub Actions workflow with a specific version of AdoptOpenJDK
Stars: ✭ 32 (+10.34%)
Mutual labels:  actions, action
rubocop-linter-action
Rubocop Linter Action: A GitHub Action to run Rubocop against your code!
Stars: ✭ 86 (+196.55%)
Mutual labels:  actions, action
dart-package-publisher
Action to Publish Dart / Flutter Package To https://pub.dev When you need to publish a package, just bump the version in pubspec.yaml
Stars: ✭ 45 (+55.17%)
Mutual labels:  actions, action
assign-one-project-github-action
Automatically add an issue or pull request to specific GitHub Project(s) when you create and/or label them.
Stars: ✭ 140 (+382.76%)
Mutual labels:  actions, action
redux-reducer-async
Create redux reducers for async behaviors of multiple actions.
Stars: ✭ 14 (-51.72%)
Mutual labels:  actions, action
actions
Set of actions for implementing CI/CD with werf and GitHub Actions
Stars: ✭ 67 (+131.03%)
Mutual labels:  actions, action
gh-action-community
GitHub Action for the Community, from welcoming first timers to badges
Stars: ✭ 24 (-17.24%)
Mutual labels:  actions, action
github-run-tests-action
mabl Github Actions implementation
Stars: ✭ 39 (+34.48%)
Mutual labels:  actions, action

Table generator

This GitHub Action creates a html table in your README.md from a json file.

Screenshot

Inputs

github-token [REQUIRED]

This is available in your GitHub Action

with:
    github-token: ${{ secrets.GITHUB_TOKEN }}

html-cell [REQUIRED]

This is the html table cell content with object-field-names

with:
    html-cell: '<td>{{ firstname }} {{ lastname }}</td>'

object-field-names [REQUIRED]

This is json, and contains a list of the names of the fields in your json file data object

with:
    object-field-names: '[ "firstname", "lastname" ]'

columns [OPTIONAL]

defaults to 2

with:
    columns: 3

json-file-path [OPTIONAL]

defaults to data.json

with:
    json-file-path: 'your-filename.json'

file-to-use [OPTIONAL]

Defaults to README.md

with:
    file-to-use: 'README.md'

Example usage

Add <!--START_SECTION:data-section--> and <!--END_SECTION:data-section--> where you would like your table to appear in your README.

jobs:
  table:
    runs-on: ubuntu-latest
    name: Update README from json data
    steps:
    - uses: actions/checkout@v2
    - name: Read/Write data into README
      uses: eddiejaoude/[email protected]
      with:
        json-file-path: 'data.json'
        github-token: ${{ secrets.GITHUB_TOKEN }}
        columns: 3
        object-field-names: '[ "githubUsername", "name", "imageUrl", "issueNumber" ]'
        file-to-use: 'README.md'
        html-cell: '<td align="center"><p><a href="https://github.com/{{ githubUsername }}">{{ name }}</a></p><img src="{{ imageUrl }}" /><p><a href="https://github.com/EddieJaoudeCommunity/awesome-github-profiles/issues/{{ issueNumber }}">(:100: give your vote)</a></p></td>'

Json file

[
    {
        "name": "Akas Rai",
        "githubUsername": "akasrai",
        "imageUrl": "https://user-images.githubusercontent.com/624760/88123456-d40df580-cbc2-11ea-9add-a7fc8675b243.png",
        "issueNumber": 12
    }
]

From this repository usage https://github.com/EddieJaoudeCommunity/awesome-github-profiles

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].