Skip to content

Commit

Permalink
ci update github actions (#9)
Browse files Browse the repository at this point in the history
* ci: update github actions

* ci: update github actions
  • Loading branch information
g3kk0 authored Feb 23, 2024
1 parent b4ae15c commit fc7cd3f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ jobs:
container:
image: joinself/license-finder:go
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: License check
shell: bash
env:
GOFLAGS: "-buildvcs=false"
run: |
export HOME=/root
source /root/.profile
Expand All @@ -22,7 +24,7 @@ jobs:
image: zricethezav/gitleaks:v8.2.4
options: --entrypoint "" --user root
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Secret scan
shell: bash
run: gitleaks detect -c ./.github/gitleaks.toml --redact -v
Expand All @@ -32,7 +34,7 @@ jobs:
container:
image: golang:1.19.1
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Build packages
shell: bash
run: |
Expand All @@ -41,7 +43,7 @@ jobs:
GOOS=darwin GOARCH=arm64 go build -o self-cli-darwin-arm64
GOOS=windows GOARCH=amd64 go build -o self-cli-windows-amd64
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: artifacts
path: self-cli-*
Expand All @@ -51,8 +53,8 @@ jobs:
needs: [license-compliance, secret-scan, build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: artifacts
- name: Bump version and push tag
Expand Down

0 comments on commit fc7cd3f

Please sign in to comment.