From c98c6ee7ae37312d2847bcc775fa119ba92ac209 Mon Sep 17 00:00:00 2001 From: Cristopher Date: Fri, 22 Nov 2024 20:23:06 +0700 Subject: [PATCH 1/2] fix(ci): change version target to master instead of latest --- .github/workflows/cover.yml | 4 ++-- .github/workflows/cpr.yml | 3 +-- .github/workflows/lint.yml | 4 ++-- .github/workflows/self-test.yml | 4 ++-- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cover.yml b/.github/workflows/cover.yml index 4f6ead8..05ffbae 100644 --- a/.github/workflows/cover.yml +++ b/.github/workflows/cover.yml @@ -7,7 +7,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 2 - uses: actions/setup-go@v2 @@ -16,4 +16,4 @@ jobs: - name: Run coverage run: go test ./... -race -coverprofile=coverage.out -covermode=atomic - name: Upload coverage to Codecov - run: bash <(curl -s https://codecov.io/bash) \ No newline at end of file + run: bash <(curl -s https://codecov.io/bash) diff --git a/.github/workflows/cpr.yml b/.github/workflows/cpr.yml index 9c94b77..8705395 100644 --- a/.github/workflows/cpr.yml +++ b/.github/workflows/cpr.yml @@ -8,7 +8,6 @@ jobs: runs-on: ubuntu-latest steps: - name: Check PR semantics - uses: Namchee/conventional-pr@latest + uses: Namchee/conventional-pr@master with: access_token: ${{ secrets.ACCESS_TOKEN }} - diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a5556cb..822fc3d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -8,8 +8,8 @@ jobs: name: lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: golangci-lint uses: golangci/golangci-lint-action@v2 with: - version: latest \ No newline at end of file + version: latest diff --git a/.github/workflows/self-test.yml b/.github/workflows/self-test.yml index 2fd343a..7ec2f72 100644 --- a/.github/workflows/self-test.yml +++ b/.github/workflows/self-test.yml @@ -7,11 +7,11 @@ jobs: cpr: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Test validation to self uses: ./ with: - access_token: ${{ secrets.ACCESS_TOKEN }} + access_token: ${{ secrets.GITHUB_TOKEN }} edit: true verbose: true From 3509b9053d12ccb3e37c7ead2560ab4fefdbf696 Mon Sep 17 00:00:00 2001 From: Cristopher Date: Fri, 22 Nov 2024 20:24:11 +0700 Subject: [PATCH 2/2] chore: restore newlines --- .github/workflows/cover.yml | 1 + .github/workflows/cpr.yml | 1 + .github/workflows/lint.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/workflows/cover.yml b/.github/workflows/cover.yml index 05ffbae..4a0a96a 100644 --- a/.github/workflows/cover.yml +++ b/.github/workflows/cover.yml @@ -17,3 +17,4 @@ jobs: run: go test ./... -race -coverprofile=coverage.out -covermode=atomic - name: Upload coverage to Codecov run: bash <(curl -s https://codecov.io/bash) + diff --git a/.github/workflows/cpr.yml b/.github/workflows/cpr.yml index 8705395..040448e 100644 --- a/.github/workflows/cpr.yml +++ b/.github/workflows/cpr.yml @@ -11,3 +11,4 @@ jobs: uses: Namchee/conventional-pr@master with: access_token: ${{ secrets.ACCESS_TOKEN }} + diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 822fc3d..cd70ee4 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,3 +13,4 @@ jobs: uses: golangci/golangci-lint-action@v2 with: version: latest +