Skip to content

Commit

Permalink
ci: added CI job for updating README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Oct 3, 2023
1 parent 48b3bb5 commit 40488f7
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 3 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build

on:
push:
branches:
- master

jobs:
readme:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install dependencies
run: pip install -r requirements.txt

- name: Generate README
run: python generate_readme.py

- name: Commit and push changes
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email '[email protected]'
git add README.md
git commit -m "chore: automatically generated README.md"
git push origin master
6 changes: 3 additions & 3 deletions README.md.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Current trends and state of the art for using open & local LLM models as copilot

📝 *Help keep this list relevant and up-to-date by [making edits][edit]!*

[edit]: https://github.com/ErikBjare/are-copilots-local-yet/edit/master/README.md
[edit]: https://github.com/ErikBjare/are-copilots-local-yet/edit/master/data.yaml

## 📋 Summary

Expand Down Expand Up @@ -79,7 +79,7 @@ Models relevant for local Copilot-use. Ordered by most recent first.

| Name | Size | Languages | :star: | Released | Notes |
| ------------------------------- | ---------- | ----------- | ------- | ---------- | ------- |
{% for item in models %}| [{{ item.name }}]({{ item.link }}) | {{ item.size }} | {{ item.languages | join(", ") }} | {{ item.stars }} | {{ item.released }} | {{ item.notes }} |
{% for item in models %}| [{{ item.name }}]({{ item.link }}) | {{ item.size }} | {{ item.languages }} | {{ item.stars }} | {{ item.released }} | {{ item.notes }} |
{% endfor %}

**Note:** due to the pace of new model releases, this section is doomed to be out of date.
Expand All @@ -90,7 +90,7 @@ Datasets relevant for training models.

| Name | Size | Languages | :star: | Released | Notes |
| ------------------------------- | ---------- | ----------- | ------- | ---------- | ------- |
{% for item in datasets %}| [{{ item.name }}]({{ item.link }}) | {{ item.size }} | {{ item.languages | join(", ") }} | {{ item.stars }} | {{ item.released }} | {{ item.notes }} |
{% for item in datasets %}| [{{ item.name }}]({{ item.link }}) | {{ item.size }} | {{ item.languages }} | {{ item.stars }} | {{ item.released }} | {{ item.notes }} |
{% endfor %}

## Tools
Expand Down
3 changes: 3 additions & 0 deletions data.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This file contains all the tools presented in the README.
# Add a tool to the appropriate section, then the CI will rebuild the README.

extensions:
- name: "GitHub Copilot"
editor: ["VSCode", "vim"]
Expand Down

0 comments on commit 40488f7

Please sign in to comment.