mirror of
https://github.com/eeeXun/GTT.git
synced 2025-05-27 21:11:11 -07:00
chore: Run format actions only on *.go changes
This commit is contained in:
parent
7d44f74bb2
commit
89257856aa
4
.github/workflows/format.yml
vendored
4
.github/workflows/format.yml
vendored
@ -4,6 +4,8 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- "**.go"
|
||||
|
||||
jobs:
|
||||
format:
|
||||
@ -14,7 +16,7 @@ jobs:
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: '^1.19'
|
||||
go-version: "^1.19"
|
||||
|
||||
- name: Format with gofmt
|
||||
run: gofmt -w .
|
||||
|
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@ -3,7 +3,7 @@ name: release
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
- "*"
|
||||
|
||||
jobs:
|
||||
release:
|
||||
@ -19,7 +19,7 @@ jobs:
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: '^1.19'
|
||||
go-version: "^1.19"
|
||||
|
||||
- name: Install dependencies
|
||||
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user