v/GTT
1
0
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:
eeeXun 2023-02-10 14:47:46 +08:00
parent 7d44f74bb2
commit 89257856aa
2 changed files with 5 additions and 3 deletions

View File

@ -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 .

View File

@ -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-') }}