This is a collection of GitHub Actions workflows that can be used withing any repository of the Garajonai Org.
- load-secrets: Load secrets from 1Password and generate a PAT with the context of
Botanibit
bot. - changelog: Generate a changelog based on the commits of the repository. Currently only
available for
go
projects andnpm
is a WIP.
The Botanibit
bot is a GitHub app that is used to perform actions on behalf of the GarajonAI
organization. It is used to perform actions such as:
- Plan a release
- Follow up a Canary deployment
- Maintain the repository's changelog
- Keep in sync the
client-x
libraries
To use any of the workflows in this repository, you can use the following steps:
- Create a Repository secret with the name
OP_TOKEN
and the value of the Personal Access Token (PAT), you can find it in 1Password as"op://Garajonai/Botanibit OP_SVC/credential"
. - Create a
.github/workflows
directory in the root of your repository. - Use the
uses
key to include the workflow in your repository.
jobs:
example:
runs-on: ubuntu-latest
steps:
- name: Load secrets
uses: garajonai/workflows-lib/load-secrets@main
id: botanibit
with:
op-token: ${{ secrets.OP_TOKEN }}
stack: go # optional, (go|npm|all|none), default: none
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ steps.botanibit.outputs.token }} # Use the token generated by the previous step
jobs:
example:
runs-on: ubuntu-latest
- name: Release changelog
uses: garajonai/workflows-lib/changelog@main
with:
token: ${{ steps.botanibit.outputs.token }}
stack: go
next-version: ${{ github.event.inputs.next_version }}