Skip to content

Commit ae78b53

Browse files
committed
Update workflows
1 parent da9ec1f commit ae78b53

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,13 @@ jobs:
2525
with:
2626
go-version-file: 'go.mod'
2727
cache: true
28-
# This uses an action (hashicorp/ghaction-import-gpg) that assumes you set your
29-
# private key in the `GPG_PRIVATE_KEY` secret and passphrase in the `PASSPHRASE`
30-
# secret. If you would rather own your own GPG handling, please fork this action
31-
# or use an alternative one for key handling.
3228
- name: Import GPG key
3329
id: import_gpg
34-
uses: hashicorp/ghaction-import-gpg@v2.1.0
35-
env:
30+
uses: crazy-max/ghaction-import-gpg@v5.2.0
31+
with:
3632
# These secrets will need to be configured for the repository:
37-
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
38-
PASSPHRASE: ${{ secrets.PASSPHRASE }}
33+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
34+
passphrase: ${{ secrets.PASSPHRASE }}
3935
- name: Run GoReleaser
4036
uses: goreleaser/[email protected]
4137
with:

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ jobs:
2323
runs-on: ubuntu-latest
2424
timeout-minutes: 5
2525
steps:
26+
- uses: actions/checkout@v3
2627
- uses: actions/setup-go@v3
2728
with:
2829
go-version-file: 'go.mod'
2930
cache: true
30-
- uses: actions/checkout@v3
3131
- run: go mod download
3232
- run: go build -v .
3333

@@ -43,7 +43,10 @@ jobs:
4343
terraform:
4444
- '1.0.*'
4545
- '1.1.*'
46+
- '1.2.*'
47+
- '1.3.*'
4648
steps:
49+
- uses: actions/checkout@v3
4750
- uses: actions/setup-go@v3
4851
with:
4952
go-version-file: 'go.mod'
@@ -52,7 +55,6 @@ jobs:
5255
with:
5356
terraform_version: ${{ matrix.terraform }}
5457
terraform_wrapper: false
55-
- uses: actions/checkout@v3
5658
- run: go mod download
5759
- env:
5860
TF_ACC: '1'

0 commit comments

Comments
 (0)