mirror of
https://github.com/wader/fq.git
synced 2024-11-26 10:33:53 +03:00
bump: Add action and cleanup names
This commit is contained in:
parent
7ad3d2550c
commit
27ba3592d0
15
.github/workflows/bump.yml
vendored
Normal file
15
.github/workflows/bump.yml
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
name: 'Automatic version updates'
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
# minute hour dom month dow (UTC)
|
||||||
|
- cron: '0 16 * * *'
|
||||||
|
# enable manual trigger of version updates
|
||||||
|
workflow_dispatch:
|
||||||
|
jobs:
|
||||||
|
version_update:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- uses: wader/bump/action/go@master
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.BUMP_TOKEN }}
|
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -6,7 +6,7 @@ on:
|
|||||||
- "master"
|
- "master"
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
# bump: workflow-golangcilint /GOLANGCILINT_VERSION: ([\d.]+)/ git:https://github.com/golangci/golangci-lint.git|^1
|
# bump: ci-golangci-lint /GOLANGCILINT_VERSION: ([\d.]+)/ git:https://github.com/golangci/golangci-lint.git|^1
|
||||||
env:
|
env:
|
||||||
GOLANGCILINT_VERSION: 1.42.0
|
GOLANGCILINT_VERSION: 1.42.0
|
||||||
|
|
||||||
@ -21,7 +21,7 @@ jobs:
|
|||||||
- name: Setup go
|
- name: Setup go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
# bump: workflows-golang /go-version: ([\d.]+)/ git:https://github.com/actions/go-versions.git|/(.*)-.*/$1/|^1
|
# bump: ci-golang /go-version: ([\d.]+)/ git:https://github.com/actions/go-versions.git|/(.*)-.*/$1/|^1
|
||||||
go-version: 1.17.0
|
go-version: 1.17.0
|
||||||
- name: Lint
|
- name: Lint
|
||||||
uses: golangci/golangci-lint-action@v2
|
uses: golangci/golangci-lint-action@v2
|
||||||
|
2
Bumpfile
2
Bumpfile
@ -1,4 +1,4 @@
|
|||||||
Dockerfile
|
Dockerfile
|
||||||
Makefile
|
Makefile
|
||||||
go.mod
|
go.mod
|
||||||
.github/workflows/*.yml
|
.github/workflows/ci.yml
|
||||||
|
@ -4,7 +4,7 @@ FROM golang:1.17.0 AS base
|
|||||||
# docker build --target dev -t fq-dev - < Dockerfile && docker run --rm -ti -v "$PWD:/$PWD" -w "$PWD" fq-dev
|
# docker build --target dev -t fq-dev - < Dockerfile && docker run --rm -ti -v "$PWD:/$PWD" -w "$PWD" fq-dev
|
||||||
FROM base AS dev
|
FROM base AS dev
|
||||||
|
|
||||||
# bump: golangcilint /GOLANGCILINT_VERSION=([\d.]+)/ git:https://github.com/golangci/golangci-lint.git|^1
|
# bump: golangci-lint /GOLANGCILINT_VERSION=([\d.]+)/ git:https://github.com/golangci/golangci-lint.git|^1
|
||||||
ARG GOLANGCILINT_VERSION=1.42.0
|
ARG GOLANGCILINT_VERSION=1.42.0
|
||||||
RUN \
|
RUN \
|
||||||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | \
|
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | \
|
||||||
|
2
Makefile
2
Makefile
@ -47,7 +47,7 @@ gogenerate:
|
|||||||
|
|
||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
lint:
|
lint:
|
||||||
# bump: make-golangcilint /golangci-lint@v([\d.]+)/ git:https://github.com/golangci/golangci-lint.git|^1
|
# bump: make-golangci-lint /golangci-lint@v([\d.]+)/ git:https://github.com/golangci/golangci-lint.git|^1
|
||||||
go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.42.0 run
|
go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.42.0 run
|
||||||
|
|
||||||
.PHONY: depgraph.svg
|
.PHONY: depgraph.svg
|
||||||
|
Loading…
Reference in New Issue
Block a user