Skip to content

sloth generate directory #458

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
aaronstutzer opened this issue Dec 27, 2022 · 3 comments
Closed

sloth generate directory #458

aaronstutzer opened this issue Dec 27, 2022 · 3 comments
Labels

Comments

@aaronstutzer
Copy link

I try to create a github action to generate the rules but I get an error for my generate command

job part of my github action config:

  generate-slo-job-1:
    name: Generate the SLOs
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: download and setup generator binary
        run: |       
          wget https://github.com/slok/sloth/releases/download/v0.11.0/sloth-linux-amd64
          chmod +x sloth-linux-amd64
          ./sloth-linux-amd64 generate -i ./configuration/sloth/rules/ -o ./configuration/sloth/rules/_gen/
      - uses: EndBug/add-and-commit@v9

error message:
error: "generate" command failed: invalid spec, could not load with any of the supported spec types

what would be the correct command?

@r3code
Copy link
Contributor

r3code commented Feb 10, 2023

First, check path to your files. Try stat ot cat in a "run" section one of your sloth files to ensure that the job can read them.

Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days.

@github-actions github-actions bot added the stale label Mar 29, 2025
Copy link

This issue was closed because it has been stale for 15 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants