Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/update-readme.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Update README from jbang-catalog

on:
push:
paths:
- 'jbang-catalog.json'
pull_request:
paths:
- 'jbang-catalog.json'
workflow_dispatch:

jobs:
generate-readme:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: true

- name: Setup JBang
uses: jbangdev/setup-jbang@main

- name: Generate README.md
run: jbang catalog2readme@jbangdev -l "@jbangdev" > README.md

- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
message: 'Update README.md from jbang-catalog.json'
author_name: 'github-actions[bot]'
author_email: 'github-actions[bot]@users.noreply.github.com'