CI: use git-based checkout instead of actions/checkout
Some checks failed
CI / build (push) Failing after 1s
Some checks failed
CI / build (push) Failing after 1s
This commit is contained in:
parent
f37f3f4929
commit
5535996410
1 changed files with 6 additions and 1 deletions
|
|
@ -10,6 +10,11 @@ jobs:
|
|||
container:
|
||||
image: golang:1.26
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Checkout
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
command -v git >/dev/null || (apt-get update -qq && apt-get install -y -qq git)
|
||||
git clone --depth 1 --branch "$GITHUB_REF_NAME" "https://x-access-token:${GITHUB_TOKEN}@${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" .
|
||||
- run: go build ./...
|
||||
- run: go vet ./...
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue