Update workflows

This commit is contained in:
CrazyMax
2020-05-24 21:41:15 +02:00
4 changed files with 5 additions and 15 deletions

View File

@@ -42,17 +42,14 @@ jobs:
echo ::set-output name=tag_name::${GITHUB_REF#refs/tags/}
fi
-
# https://github.com/actions/setup-go
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.13
-
# https://github.com/actions/checkout
name: Checkout
uses: actions/checkout@v2
-
# https://github.com/goreleaser/goreleaser-action
name: GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
@@ -63,7 +60,6 @@ jobs:
run: |
go test -coverprofile=coverage.txt -covermode=atomic ./...
-
# https://github.com/codecov/codecov-action
name: Upload coverage
uses: codecov/codecov-action@v1
if: success()
@@ -71,7 +67,6 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.txt
-
# https://github.com/softprops/action-gh-release
name: GitHub Release
uses: softprops/action-gh-release@v1
if: success() && startsWith(github.ref, 'refs/tags/')
@@ -113,11 +108,9 @@ jobs:
${TAGS} \
--file Dockerfile .
-
# https://github.com/crazy-max/ghaction-docker-buildx
name: Set up Docker Buildx
uses: crazy-max/ghaction-docker-buildx@v1
-
# https://github.com/actions/checkout
name: Checkout
uses: actions/checkout@v2
-

View File

@@ -18,7 +18,6 @@ jobs:
name: Checkout
uses: actions/checkout@v2
-
# https://github.com/actions/setup-go
name: Set up Go
uses: actions/setup-go@v2
with:
@@ -33,14 +32,14 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git config user.name GitHub
git config user.email noreply@github.com
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
-
name: Commit and push changes
run: |
git add .
if output=$(git status --porcelain) && [ ! -z "$output" ]; then
git commit -m 'Fix go modules'
git commit --author "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" --message "Fix go modules"
git push
fi

View File

@@ -13,11 +13,9 @@ jobs:
runs-on: ubuntu-latest
steps:
-
# https://github.com/actions/checkout
name: Checkout
uses: actions/checkout@v2
-
# https://github.com/crazy-max/ghaction-github-labeler
name: Run Labeler
if: success()
uses: crazy-max/ghaction-github-labeler@v2

View File

@@ -4,8 +4,8 @@
<a href="https://github.com/crazy-max/diun/releases/latest"><img src="https://img.shields.io/github/release/crazy-max/diun.svg?style=flat-square" alt="GitHub release"></a>
<a href="https://github.com/crazy-max/diun/releases/latest"><img src="https://img.shields.io/github/downloads/crazy-max/diun/total.svg?style=flat-square" alt="Total downloads"></a>
<a href="https://github.com/crazy-max/diun/actions"><img src="https://github.com/crazy-max/diun/workflows/build/badge.svg" alt="Build Status"></a>
<a href="https://hub.docker.com/r/crazymax/diun/"><img src="https://img.shields.io/docker/stars/crazymax/diun.svg?style=flat-square" alt="Docker Stars"></a>
<a href="https://hub.docker.com/r/crazymax/diun/"><img src="https://img.shields.io/docker/pulls/crazymax/diun.svg?style=flat-square" alt="Docker Pulls"></a>
<a href="https://hub.docker.com/r/crazymax/diun/"><img src="https://img.shields.io/docker/stars/crazymax/diun.svg?style=flat-square&logo=docker" alt="Docker Stars"></a>
<a href="https://hub.docker.com/r/crazymax/diun/"><img src="https://img.shields.io/docker/pulls/crazymax/diun.svg?style=flat-square&logo=docker" alt="Docker Pulls"></a>
<br /><a href="https://goreportcard.com/report/github.com/crazy-max/diun"><img src="https://goreportcard.com/badge/github.com/crazy-max/diun?style=flat-square" alt="Go Report"></a>
<a href="https://www.codacy.com/app/crazy-max/diun"><img src="https://img.shields.io/codacy/grade/f2ef980c87d247ce8a8dbc98a8f4f434.svg?style=flat-square" alt="Code Quality"></a>
<a href="https://github.com/sponsors/crazy-max"><img src="https://img.shields.io/badge/sponsor-crazy--max-181717.svg?logo=github&style=flat-square" alt="Become a sponsor"></a>