forked from conan-io/conan-center-index
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: test automatic README.md updating
- Loading branch information
Showing
9 changed files
with
73 additions
and
450 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<p align="center"> | ||
<img src="assets/JFrogConanCenter.png" width="600"/> | ||
</p> | ||
|
||
This is a fork of Conan Center Index containing recipes and changes by @valgur not yet merged to the main Conan Center Index. | ||
|
||
You can add this repo as a Conan remote with the following commands: | ||
|
||
``` | ||
git clone https://github.com/valgur/conan-center-index.git cci-valgur | ||
conan remote add cci-valgur "$PWD/cci-valgur" | ||
``` | ||
|
||
## Added recipes and versions | ||
|
||
Here is a list of package versions that are not available on the main CCI as of <date>: | ||
|
||
<versions> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: "Update README daily" | ||
on: | ||
push: | ||
# schedule: | ||
# - cron: "33 3 * * *" | ||
# workflow_dispatch: | ||
jobs: | ||
update_readme: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
# Give the default GITHUB_TOKEN write permission to commit and push the | ||
# added or changed files to the repository. | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
- name: Install prereqs | ||
run: pip install -U yq | ||
- name: Get local package versions | ||
shell: bash | ||
run: | | ||
set -o pipefail | ||
cd recipes | ||
find * -maxdepth 1 -name config.yml | sort | while read f; do pkg=$(dirname "$f"); yq --raw-output '.versions | "'"$pkg/"'" + keys_unsorted[]' $f | sort; done | tee valgur.list | ||
- name: Checkout upstream | ||
run: | | ||
git remote add upstream https://github.com/conan-io/conan-center-index.git | ||
git fetch upstream master | ||
git checkout FETCH_HEAD | ||
- name: Get upstream package versions | ||
shell: bash | ||
run: | | ||
set -o pipefail | ||
cd recipes | ||
find * -maxdepth 1 -name config.yml | sort | while read f; do pkg=$(dirname "$f"); yq --raw-output '.versions | "'"$pkg/"'" + keys_unsorted[]' $f | sort; done | tee conan-io.list | ||
- name: Compare package versions | ||
run: cd recipes && comm -13 conan-io.list valgur.list | tee diff.list | ||
- name: Checkout dev branch | ||
run: | | ||
git fetch origin dev | ||
git checkout FETCH_HEAD | ||
- name: Update README | ||
run: | | ||
set -o pipefail | ||
# Add a '- ' before each item in diff.list | ||
sed -i 's/^/- /' recipes/diff.list | ||
# Replace <date> with today's date and <versions> with the diff | ||
sed "s/<date>/$(date +%Y-%m-%d)/" .github/README_TEMPLATE.md | sed "/<versions>/r recipes/diff.list" | sed "/<versions>/d" | tee README.md | ||
- uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: "Daily README.md update" | ||
file_pattern: "README.md" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.