Skip to content

Commit

Permalink
Update Github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
CuteReimu committed Apr 7, 2024
1 parent 42978e5 commit 5689eed
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
name: Go-v2
name: Go-v1

on:
push:
branches: [ v2 ]
branches: [ v1 ]
pull_request:
branches: [ v2 ]
branches: [ v1 ]

jobs:

build:
strategy:
matrix:
go: [ '1.17', '1.22' ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
go-version: ${{ matrix.go }}

- name: golangci-lint
uses: golangci/golangci-lint-action@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/gofmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: GoFmt

on:
push:
branches: [ master, v2 ]
branches: [ v1 ]
pull_request:
branches: [ master ]

jobs:

Expand All @@ -17,13 +19,11 @@ jobs:
go-version: '1.22'

- name: gofmt
if: github.repository_owner == 'CuteReimu'
continue-on-error: true
run: |
if [ "$(gofmt -s -l -w . | wc -l)" -gt 0 ]; then
git config --local user.name 'github-actions[bot]'
git config --local user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add --all
git commit -m "gofmt"
git push
fi
fi
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

本项目是基于Go语言编写的哔哩哔哩API调用。目前常用的接口已经基本完成,具体进度可以看[这里](#进度)

[v2版本正在施工中。。。](https://github.com/CuteReimu/bilibili/issues/31)

**声明**

1. 本项目遵守 AGPL 开源协议。
Expand Down

0 comments on commit 5689eed

Please sign in to comment.