chore: fix actions/checkout bug

ref: actions/checkout#518
This commit is contained in:
Enrico Stahn 2022-03-30 13:27:49 +02:00
parent 7004aa2d93
commit 10f88868f1
No known key found for this signature in database
GPG key ID: 5263621C269A50DE
3 changed files with 12 additions and 6 deletions

View file

@ -36,6 +36,8 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v3
with:
ref: "refs/pull/${{ github.event.number }}/merge"
# Initializes the CodeQL tools for scanning. # Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL - name: Initialize CodeQL

View file

@ -12,9 +12,9 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
with:
- name: Unshallow fetch-depth: 0
run: git fetch --prune --unshallow ref: "refs/pull/${{ github.event.number }}/merge"
- name: Install semantic-release - name: Install semantic-release
run: yarn global add --no-progress --non-interactive "semantic-release" "@semantic-release/exec" run: yarn global add --no-progress --non-interactive "semantic-release" "@semantic-release/exec"
@ -31,9 +31,9 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
with:
- name: Unshallow fetch-depth: 0
run: git fetch --prune --unshallow ref: "refs/pull/${{ github.event.number }}/merge"
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v2.1.4 uses: actions/setup-go@v2.1.4

View file

@ -22,6 +22,8 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
with:
fetch-depth: 0
- name: golangci-lint - name: golangci-lint
uses: golangci/golangci-lint-action@v2.5.2 uses: golangci/golangci-lint-action@v2.5.2
@ -41,6 +43,8 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
with:
ref: "refs/pull/${{ github.event.number }}/merge"
- name: Test - name: Test
run: go test -coverprofile cover.out ./... run: go test -coverprofile cover.out ./...