Skip to content

arran4/g2-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

g2 GitHub Action

This GitHub Action downloads and installs g2, a set of Gentoo CLI tools for working with Manifest files, generating static overlay sites, and more.

Usage

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'

Inputs

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

License

This action is distributed under the same terms as the g2 tool itself. See the LICENSE file for details.

About

g2 github workflow action

Topics

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages