Skip to content

Commit

Permalink
chore: fix actions/checkout bug
Browse files Browse the repository at this point in the history
  • Loading branch information
estahn committed Mar 30, 2022
1 parent 7004aa2 commit 10f8886
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: "refs/pull/${{ github.event.number }}/merge"

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:

- name: Checkout
uses: actions/checkout@v3

- name: Unshallow
run: git fetch --prune --unshallow
with:
fetch-depth: 0
ref: "refs/pull/${{ github.event.number }}/merge"

- name: Install semantic-release
run: yarn global add --no-progress --non-interactive "semantic-release" "@semantic-release/exec"
Expand All @@ -31,9 +31,9 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Unshallow
run: git fetch --prune --unshallow
with:
fetch-depth: 0
ref: "refs/pull/${{ github.event.number }}/merge"

- name: Set up Go
uses: actions/setup-go@v2.1.4
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:

- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: golangci-lint
uses: golangci/golangci-lint-action@v2.5.2
Expand All @@ -41,6 +43,8 @@ jobs:

- name: Checkout
uses: actions/checkout@v3
with:
ref: "refs/pull/${{ github.event.number }}/merge"

- name: Test
run: go test -coverprofile cover.out ./...
Expand Down

0 comments on commit 10f8886

Please sign in to comment.