This GitHub Action downloads and installs g2, a set of Gentoo CLI tools for working with Manifest files, generating static overlay sites, and more.
name: Example workflow
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install g2
uses: arran4/g2-action@v1
with:
# Optional: specify a version. Defaults to 'latest'
version: 'latest'
- name: Use g2
run: |
g2 lint .
- name: Use g2 Action
uses: arran4/g2-action@v1.2
with:
# Optional: specify an action
action: 'lint .'
# Optional: skip installation if already installed
mode: 'run'
# Optional: specify a timeout for git clone operations
git-clone-timeout: '10m'| Name | Description | Default | Required |
|---|---|---|---|
version |
The version of g2 to install (e.g. latest, v0.0.18). |
latest |
No |
github-token |
GitHub token to authenticate API requests to prevent rate limiting. | ${{ github.token }} |
No |
action |
The action to run with g2. |
'' |
No |
mode |
The execution mode: install, install and run, or run. |
install |
No |
git-clone-timeout |
The timeout for git clone operations. | '' |
No |
This action is distributed under the same terms as the g2 tool itself. See the LICENSE file for details.