File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3838 key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
3939 restore-keys : |
4040 ${{ runner.os }}-go-
41- # - name: Download template
42- # run: |
43- # curl 'https://raw.githubusercontent.com/TykTechnologies/github-actions/main/.github/workflows/.golangci.tmpl.yaml' -o .golangci.yaml
44- # - name: Render template
45- # id: render_template
46- # uses: chuhlomin/render-template@v1.7
47- # with:
48- # template: .golangci.yaml
49- # result_path: .golangci.yaml
50- # vars: |
51- # main_branch: ${{ inputs.main_branch }}
52- # goimports: ''
53- # build_tags: []
54- # skip_dirs: []
55- # go_version: ${{ inputs.go }}
56- # - name: Apply template
57- # run: |
58- # cp .golangci.yaml /tmp/.golangci.yaml
59- # if [[ `git status --porcelain` ]]; then
60- # export ref=$(git rev-parse HEAD)
61- # git checkout ${{ inputs.main_branch }}
62- # git pull --rebase
63- # git config --global user.name 'Bender'
64- # git config --global user.email 'bender@users.noreply.github.com'
65- # git add -A
66- # git commit -a -m 'Update Golangci config'
67- # git push origin ${{ inputs.main_branch }}
68- # git checkout $ref
69- # fi
70- # cp /tmp/.golangci.yaml .golangci.yaml
7141 - uses : actions/setup-go@v3
7242 with :
7343 go-version : ${{ inputs.go }}
You can’t perform that action at this time.
0 commit comments