This repository holds what every Libre Bots repository shares: the front page of the organization, the brand files, and the CI, release and Renovate set-up.
| Path | What it is |
|---|---|
profile/README.md |
The front page of the organization on GitHub. |
brand/ |
Logos, banners, the animated icons and the emojis of the bots' panels, one folder per bot. See brand/README.md. |
.github/workflows/release-prepare.yml |
Reusable workflow: works out the next version, builds the Python packages and container images, and creates the tag. |
.github/workflows/release-finish.yml |
Reusable workflow: tags the images, writes the GitHub release, and checks that what was published installs and runs. |
actions/ci-done/ |
Action for the last job of a CI workflow. It passes only when every job in its needs succeeded or was skipped. |
renovate/default.json |
The Renovate preset of every repository. |
scripts/ |
The version helper the release workflow runs, the helper that writes the test logos and the GIF packer for the animated icons, with their tests. |
Workflows and the action are pinned to a commit, with the version as a comment.
The last job of a CI workflow. It is named CI Done, because a release only starts on a commit whose CI Done check
is green, and its needs lists every other job:
ci-done:
name: CI Done
if: ${{ always() }}
needs: [lint, test]
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: libre-bots/.github/actions/ci-done@<commit> # vX.Y.Z
with:
needs: ${{ toJSON(needs) }}A release workflow calls release-prepare.yml first and release-finish.yml last:
uses: libre-bots/.github/.github/workflows/release-prepare.yml@<commit> # vX.Y.ZThe inputs are described in the two workflow files. The hub's release workflow is a complete example.
Renovate, in a repository's renovate.json:
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["github>libre-bots/.github//renovate/default"]
}The tags of this repository version the workflows and the action. Renovate reads the preset from main and the
brand files are linked from main, so a change to either applies as soon as it is merged.