public repo for defining reusable github actions and workflows.
If you want to use the python linters workflow you can setup a github workflow (.github/workflows/linting.yml
) in your repository root similarly to the following:
name: Lint
on:
pull_request:
branches:
- main
jobs:
call-linters:
uses: SKOOTUK/public-workflows/.github/workflows/python_linters.yml@main
If you want to use the Tree Planter workflow you need to:
- Setup your account at https://eco.skoot.io/getting-started/ and get your key
- Setup your repository with the following secrets: * ECO_KEY: the key you've been assigned in the eco portal * QUANTITY: the quantity of trees to plant on each github event
- Setup the workflow in your repository similarly to the following:
name: Plant Trees
on:
pull_request:
branches:
- main
jobs:
call-gardener:
uses: SKOOTUK/public-workflows/.github/workflows/plant_trees.yml@main
secrets:
key: ${{ secrets.ECO_KEY }}
quantity: ${{ secrets.QUANTITY }}
Done, you're ready to plant trees on PR merges (in this example)!