Setup git to use token
This commit is contained in:
@@ -50,6 +50,8 @@ jobs:
|
|||||||
if [ -n "${{ matrix.goarm }}" ]; then
|
if [ -n "${{ matrix.goarm }}" ]; then
|
||||||
echo "GOARM=${{ matrix.goarm }}" >> $GITHUB_ENV
|
echo "GOARM=${{ matrix.goarm }}" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
|
- name: Setup git to use token
|
||||||
|
run: git configure --global url."https://${{ secrets.GITHUB_TOKEN }}@git.maze.io/".insteadOf "https://git.maze.io/"
|
||||||
- name: Download modules
|
- name: Download modules
|
||||||
run: go mod download
|
run: go mod download
|
||||||
- name: Make build directory
|
- name: Make build directory
|
||||||
|
|||||||
12
.pre-commit-config.yaml
Normal file
12
.pre-commit-config.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
repos:
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v6.0.0
|
||||||
|
hooks:
|
||||||
|
- id: check-yaml
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
- id: trailing-whitespace
|
||||||
|
|
||||||
|
- repo: https://github.com/golangci/golangci-lint
|
||||||
|
rev: v2.10.1
|
||||||
|
hooks:
|
||||||
|
- id: golangci-lint
|
||||||
Reference in New Issue
Block a user