mirror of
https://github.com/awesome-selfhosted/awesome-selfhosted-data.git
synced 2026-03-11 08:55:24 +00:00
Merge pull request #13 from awesome-selfhosted/make-process
tools: automatically add github metadata (stargazers_count/udpated_at) to github software entries missing these
This commit is contained in:
commit
9dba9aa9e5
2 changed files with 8 additions and 2 deletions
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
|
|
@ -6,11 +6,16 @@ on:
|
|||
branches: [ master ]
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: process
|
||||
run: make process
|
||||
- name: build
|
||||
run: make build
|
||||
|
|
|
|||
5
Makefile
5
Makefile
|
|
@ -4,6 +4,7 @@ SHELL := /bin/bash
|
|||
install:
|
||||
python3 -m venv .venv
|
||||
source .venv/bin/activate && \
|
||||
pip3 install wheel && \
|
||||
pip3 install --force git+https://github.com/nodiscc/hecat.git@hecat-process
|
||||
|
||||
.PHONY: import # import data from original list at https://github.com/awesome-selfhosted/awesome-selfhosted
|
||||
|
|
@ -14,12 +15,12 @@ import: install
|
|||
rm -rf tags/ software/ platforms/
|
||||
mkdir -p tags/ software/ platforms/
|
||||
source .venv/bin/activate && \
|
||||
hecat import --source-file awesome-selfhosted/README.md --output-directory ./
|
||||
hecat import --source-file awesome-selfhosted/README.md --output-directory ./ --options=gh-metadata-only-missing
|
||||
|
||||
.PHONY: process # apply automatic processing (gather github metadata)
|
||||
process: install
|
||||
source .venv/bin/activate && \
|
||||
hecat process --processors github_metadata --source-directory ./
|
||||
hecat process --processors github_metadata --source-directory ./ --options=gh-metadata-only-missing
|
||||
|
||||
.PHONY: build # build markdown singlepage document from yaml data
|
||||
build: install
|
||||
|
|
|
|||
Loading…
Reference in a new issue