1
1
mirror of https://github.com/wader/fq.git synced 2024-11-22 07:16:49 +03:00

bump: Add action and cleanup names

This commit is contained in:
Mattias Wadman 2021-08-21 11:25:21 +02:00
parent 7ad3d2550c
commit 27ba3592d0
5 changed files with 20 additions and 5 deletions

15
.github/workflows/bump.yml vendored Normal file
View 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 }}

View File

@ -6,7 +6,7 @@ on:
- "master"
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:
GOLANGCILINT_VERSION: 1.42.0
@ -21,7 +21,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v2
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
- name: Lint
uses: golangci/golangci-lint-action@v2

View File

@ -1,4 +1,4 @@
Dockerfile
Makefile
go.mod
.github/workflows/*.yml
.github/workflows/ci.yml

View File

@ -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
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
RUN \
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | \

View File

@ -47,7 +47,7 @@ gogenerate:
.PHONY: 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
.PHONY: depgraph.svg