dev: CI cleanups (#4008)

This commit is contained in:
Ville Skyttä 2023-08-12 20:21:28 +03:00 committed by GitHub
parent 7b861ddd90
commit 6efb0098a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 6 deletions

View File

@ -114,9 +114,6 @@ jobs:
check_generated: check_generated:
needs: golangci-lint # run after golangci-lint action to not produce duplicated errors needs: golangci-lint # run after golangci-lint action to not produce duplicated errors
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
# needed for github-action-config.json generation
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Unshallow - name: Unshallow
@ -131,3 +128,6 @@ jobs:
go-version: ${{ env.GO_VERSION }} go-version: ${{ env.GO_VERSION }}
- name: Check generated files are up to date - name: Check generated files are up to date
run: make fast_check_generated run: make fast_check_generated
env:
# needed for github-action-config.json generation
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -7,8 +7,6 @@ on:
jobs: jobs:
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GOLANGCI_LINT_TOKEN }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Install Go - name: Install Go
@ -26,7 +24,7 @@ jobs:
uses: goreleaser/goreleaser-action@v4 uses: goreleaser/goreleaser-action@v4
with: with:
version: latest version: latest
args: release --rm-dist args: release --clean
env: env:
GITHUB_TOKEN: ${{ secrets.GOLANGCI_LINT_TOKEN }} GITHUB_TOKEN: ${{ secrets.GOLANGCI_LINT_TOKEN }}