Skip to content

Commit cf0b25e

Browse files
fix: updated GitHub Actions (#132)
* fix: updated GitHub Actions * ci: add dist folder to gitignore
1 parent 977a0e9 commit cf0b25e

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
fetch-depth: 2
3535

3636
- name: Set up Go
37-
uses: actions/setup-go@v4
37+
uses: actions/setup-go@v5
3838
with:
3939
go-version: ${{ env.GO_VERSION }}
4040
check-latest: true

.github/workflows/pull_request.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
run: make tests-coverage
6060

6161
- name: Codecov Upload
62-
uses: codecov/codecov-action@v4.3.1
62+
uses: codecov/codecov-action@v4.5.0
6363
env:
6464
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
6565

@@ -82,10 +82,10 @@ jobs:
8282
8383
8484
- name: Set up QEMU
85-
uses: docker/setup-qemu-action@v2
85+
uses: docker/setup-qemu-action@v3.2.0
8686

8787
- name: Set up Docker Buildx
88-
uses: docker/setup-buildx-action@v2
88+
uses: docker/setup-buildx-action@v3
8989

9090

9191
- name: Login to GHCR

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181

8282
- run: git fetch --force --tags
8383

84-
- uses: actions/setup-go@v5.0.2
84+
- uses: actions/setup-go@v5
8585
with:
8686
go-version: ${{ env.GO_VERSION }}
8787
check-latest: true
@@ -116,7 +116,7 @@ jobs:
116116
- name: Checkout
117117
uses: actions/checkout@v4
118118

119-
- uses: actions/setup-go@v4
119+
- uses: actions/setup-go@v5
120120
with:
121121
go-version: "1.22"
122122
check-latest: true
@@ -134,6 +134,10 @@ jobs:
134134
username: ${{ github.repository_owner }}
135135
password: ${{ secrets.GITHUB_TOKEN }}
136136

137+
- name: Get AWS Regions
138+
run: aws ec2 describe-regions --all-regions --region us-east-1 --query "Regions[].RegionName" --output text >> cmd/aws-regions.txt
139+
140+
137141
- name: Build and Push Docker Image
138142
uses: docker/build-push-action@v6
139143
id: build-and-push

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ main
2828
.DS_STORE
2929
main
3030
coverage.out
31+
32+
dist/

.goreleaser.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ builds:
1111
- id: primary
1212
ldflags:
1313
- -s -w -X github.com/karl-cardenas-coding/go-lambda-cleanup/v2/cmd.VersionString={{.Version}}
14+
binary: glc
1415
env:
1516
- CGO_ENABLED=0
1617
goos:

0 commit comments

Comments
 (0)