github.com/Racer159/jackal@v0.32.7-0.20240401174413-0bd2339e4f2e/docs/3-create-a-jackal-package/9-github-action.md (about)

     1  # Getting Started - Github Action
     2  
     3  The [setup-jackal](https://github.com/defenseunicorns/setup-jackal) Github action is an officially supported action to install any version of Jackal and it's `init` package with zero added dependencies.
     4  
     5  ## Example Usage - Creating a Package
     6  
     7  ```yaml
     8  # .github/workflows/jackal-package-create.yml
     9  jobs:
    10    create_package:
    11      runs-on: ubuntu-latest
    12  
    13      name: Create my cool Jackal Package
    14      steps:
    15        - uses: actions/checkout@v3
    16          with:
    17            fetch-depth: 1
    18  
    19        - name: Install Jackal
    20          uses: defenseunicorns/setup-jackal@main # use action's main branch
    21          with:
    22            version: v0.22.2 # any valid jackal version, leave blank to use latest
    23  
    24        - name: Create the package
    25          run: jackal package create --confirm
    26  ```
    27  
    28  More examples are located in the action's [README.md](https://github.com/defenseunicorns/setup-jackal#readme)