v/GTT
1
0
mirror of https://github.com/eeeXun/GTT.git synced 2025-05-29 14:00:29 -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: push:
branches: branches:
- master - master
paths:
- "**.go"
jobs: jobs:
format: format:
@ -14,7 +16,7 @@ jobs:
- name: Setup Go - name: Setup Go
uses: actions/setup-go@v3 uses: actions/setup-go@v3
with: with:
go-version: '^1.19' go-version: "^1.19"
- name: Format with gofmt - name: Format with gofmt
run: gofmt -w . run: gofmt -w .

View File

@ -3,7 +3,7 @@ name: release
on: on:
push: push:
tags: tags:
- '*' - "*"
jobs: jobs:
release: release:
@ -19,7 +19,7 @@ jobs:
- name: Setup Go - name: Setup Go
uses: actions/setup-go@v3 uses: actions/setup-go@v3
with: with:
go-version: '^1.19' go-version: "^1.19"
- name: Install dependencies - name: Install dependencies
if: ${{ startsWith(matrix.os, 'ubuntu-') }} if: ${{ startsWith(matrix.os, 'ubuntu-') }}