Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
Signed-off-by: bupd <bupdprasanth@gmail.com>
  • Loading branch information
bupd committed Dec 28, 2024
1 parent 41b2554 commit dda22bf
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 16 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,6 @@ jobs:
- name: Dagger Version
uses: sagikazarmark/dagger-version-action@v0.0.1

- name: Generate Documentation
uses: dagger/dagger-for-github@v7
with:
version: ${{ steps.dagger_version.outputs.version }}
verb: call
args: run-doc export --path=doc

- name: Check for changes
run: |
# Check if any files were changed by document
git diff --exit-code
continue-on-error: false

- name: Run Dagger golangci-lint
uses: dagger/dagger-for-github@v7
with:
Expand Down
6 changes: 3 additions & 3 deletions dagger/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (m *HarborCli) LintReport(ctx context.Context) *dagger.File {
return m.lint(ctx).WithExec([]string{
"golangci-lint", "run",
"--out-format", "sarif:" + report,
"--issues-exit-code", "0",
"--issues-exit-code", "1",
}).File(report)
}

Expand Down Expand Up @@ -219,8 +219,8 @@ func (m *HarborCli) RunDoc(ctx context.Context) *dagger.Directory {
WithEnvVariable("GOCACHE", "/go/build-cache").
WithMountedDirectory("/src", m.Source).
WithWorkdir("/src/doc").
WithExec([]string{"go", "run", "doc.go"}).
WithExec([]string{"go", "run", "man_doc.go"}).
WithExec([]string{"go", "run", "_doc.go"}).
WithExec([]string{"go", "run", "_man_doc.go"}).
WithWorkdir("/src").Directory("/src/doc")
}

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit dda22bf

Please sign in to comment.