mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
Fix Repology.json (#9739)
This commit is contained in:
committed by
GitHub
parent
1a601b319c
commit
9894fd4d27
27
.github/workflows/Repology.yml
vendored
27
.github/workflows/Repology.yml
vendored
@@ -6,19 +6,22 @@ on:
|
||||
jobs:
|
||||
generate:
|
||||
runs-on: ubuntu-latest
|
||||
container: satmandu/crewbuild:amd64
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: '3.3.1'
|
||||
- name: Configure git
|
||||
run: |
|
||||
git config --global user.name 'github-actions[bot]'
|
||||
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
|
||||
- name: Generate boards.json
|
||||
env:
|
||||
CREW_KERNEL_VERSION: 5.1
|
||||
run: |
|
||||
ruby -Ctools json.rb
|
||||
- name: Generate JSON
|
||||
run: |
|
||||
git config --global safe.directory /usr/local/lib/crew
|
||||
git pull
|
||||
git config --global user.name "github-actions[bot]"
|
||||
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
git config --global credential.helper store
|
||||
echo 'https://token:${{ secrets.GITHUB_TOKEN }}@github.com' > ~/.git-credentials
|
||||
cd /usr/local/lib/crew/tools
|
||||
ruby json.rb
|
||||
# We only need to add repology.json for the first run of the script
|
||||
git add repology.json
|
||||
git commit -o repology.json -m "Update Repology JSON"
|
||||
# The || true here means that empty commits fail, so we don't pollute the repo history.
|
||||
git commit -o tools/repology.json -m "Update Repology JSON" || true
|
||||
git push
|
||||
|
||||
@@ -9,6 +9,9 @@ require_relative '../lib/package'
|
||||
output = []
|
||||
|
||||
Dir.glob('../packages/*.rb').each do |filename|
|
||||
# docbook_xml runs code on loading that does not work when chromebrew is not installed.
|
||||
# It shouldn't be doing that, but work around it for now.
|
||||
next if filename.include?('docbook')
|
||||
pkg = Package.load_package(filename)
|
||||
next if pkg.is_fake?
|
||||
output << { name: File.basename(filename, '.rb').gsub('_', '-'), description: pkg.description, homepage: pkg.homepage, version: pkg.version, license: pkg.license, compatibility: pkg.compatibility }
|
||||
|
||||
17074
tools/repology.json
Normal file
17074
tools/repology.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user