Skip to content

Commit 36712d5

Browse files
committed
chore: update github actions to be able to reproduce using act
1 parent b14e524 commit 36712d5

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
types: [opened, reopened]
1111

1212
jobs:
13-
goreleaser:
13+
build:
1414
runs-on: ubuntu-latest
1515
env:
1616
DOCKER_CLI_EXPERIMENTAL: "enabled"

.github/workflows/release.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- "*"
77

88
jobs:
9-
goreleaser:
9+
release:
1010
runs-on: ubuntu-latest
1111
env:
1212
DOCKER_CLI_EXPERIMENTAL: "enabled"
@@ -22,13 +22,17 @@ jobs:
2222
with:
2323
go-version: '^1.18.0'
2424
- name: Login to Docker hub
25+
if: ${{ !env.ACT }}
2526
run: docker login -u ${{ secrets.DOCKER_HUB_USER }} -p ${{ secrets.DOCKER_HUB_PASSWORD }}
2627
- name: Import GPG key
28+
if: ${{ !env.ACT }}
2729
id: import_gpg
28-
uses: crazy-max/ghaction-import-gpg@v4
30+
uses: crazy-max/ghaction-import-gpg@v5
2931
with:
3032
gpg_private_key: ${{ secrets.SIGNING_KEY }}
31-
- uses: goreleaser/goreleaser-action@v4
33+
- name: Release Helm-Docs
34+
if: ${{ !env.ACT }}
35+
uses: goreleaser/goreleaser-action@v4
3236
with:
3337
args: release
3438
env:

CONTRIBUTING.md

+9
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,12 @@ To run benchmarks, run the command:
1212
```
1313
go test -run=^$ -bench=. ./cmd/helm-docs
1414
```
15+
16+
### Github Actions
17+
You may use [act](https://github.com/nektos/act) to test
18+
19+
locally the workflow.By issuing the following command you can
20+
see if a release will work as expected.
21+
```bash
22+
act -j release
23+
```

0 commit comments

Comments
 (0)