Skip to content

Commit

Permalink
fix github actions to use the new module path
Browse files Browse the repository at this point in the history
  • Loading branch information
christophetd committed Jul 22, 2022
1 parent 6278891 commit a04c14c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
permissions:
contents: write

defaults:
run:
working-directory: ./v2

jobs:
goreleaser:
runs-on: ubuntu-latest
Expand All @@ -26,6 +30,7 @@ jobs:
with:
distribution: goreleaser
version: latest
args: release --rm-dist
args: release --rm-dist --config ../.goreleaser.yaml
workdir: ./v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 3 additions & 2 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.18
- uses: dominikh/staticcheck-action@v1.1.0
- uses: dominikh/staticcheck-action@v1.2.0
with:
version: "2022.1"
install-go: false
install-go: false
working-directory: "./v2"
2 changes: 1 addition & 1 deletion v2/tools/generate-techniques-documentation.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (

func main() {
if len(os.Args) != 2 {
fmt.Errorf("specify the docs output directory")
fmt.Fprintln(os.Stderr, "specify the docs output directory")
os.Exit(1)
}
docsDirectory := os.Args[1]
Expand Down

0 comments on commit a04c14c

Please sign in to comment.