Skip to content

Commit

Permalink
Add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy-max committed Aug 21, 2020
1 parent a59a673 commit 25b3563
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 1 deletion.
44 changes: 44 additions & 0 deletions .github/workflows/gosum.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: gosum

on:
push:
branches:
- 'master'
paths:
- '.github/workflows/gosum.yml'
- 'go.mod'
- 'go.sum'

jobs:
fix:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2.3.2
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.13
-
name: Tidy
run: |
rm -f go.sum
go mod tidy
-
name: Set up Git
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
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 --author "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" --message "Fix go modules"
git push
fi
23 changes: 23 additions & 0 deletions .github/workflows/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: labels

on:
push:
branches:
- 'master'
paths:
- '.github/labels.yml'
- '.github/workflows/labels.yml'

jobs:
labeler:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2.3.2
-
name: Run Labeler
if: success()
uses: crazy-max/ghaction-github-labeler@v3.0.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
35 changes: 35 additions & 0 deletions .github/workflows/released.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: released

on:
release:
types: [published]

jobs:
virustotal:
runs-on: ubuntu-latest
steps:
-
name: Prepare
id: prepare
run: |
echo ::set-output name=date::$(date -u +'%Y%m%d')
-
name: VirusTotal Monitor Scan
uses: crazy-max/ghaction-virustotal@v2.2.0
with:
vt_api_key: ${{ secrets.VT_MONITOR_API_KEY }}
vt_monitor: true
monitor_path: /portapps/${{ steps.prepare.outputs.date }}/${{ github.event.repository.name }}-${{ github.event.release.tag_name }}
update_release_body: false
github_token: ${{ secrets.GITHUB_TOKEN }}
files: |
${{ github.event.repository.name }}-(win32|win64).exe
-
name: VirusTotal Scan
uses: crazy-max/ghaction-virustotal@v2.2.0
with:
vt_api_key: ${{ secrets.VT_API_KEY }}
update_release_body: true
github_token: ${{ secrets.GITHUB_TOKEN }}
files: |
${{ github.event.repository.name }}-(win32|win64).exe
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<a href="https://portapps.io/app/ueli-portable/#download"><img src="https://img.shields.io/github/downloads/portapps/ueli-portable/total.svg?style=flat-square" alt="Total downloads"></a>
<a href="https://travis-ci.com/portapps/ueli-portable"><img src="https://img.shields.io/travis/com/portapps/ueli-portable/master.svg?style=flat-square" alt="Build Status"></a>
<a href="https://goreportcard.com/report/github.com/portapps/ueli-portable"><img src="https://goreportcard.com/badge/github.com/portapps/ueli-portable?style=flat-square" alt="Go Report"></a>
<a href="https://app.codacy.com/gh/portapps/ueli-portable"><img src="https://img.shields.io/codacy/grade/ed1274db38464b82adc4261d1b1a006b.svg?style=flat-square" alt="Code Quality"></a>
<a href="https://app.codacy.com/gh/portapps/ueli-portable"><img src="https://img.shields.io/codacy/grade/4fded06e028e4acdb25ee352e8399ef8.svg?style=flat-square" alt="Code Quality"></a>
<br /><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>
<a href="https://www.paypal.me/crazyws"><img src="https://img.shields.io/badge/donate-paypal-00457c.svg?logo=paypal&style=flat-square" alt="Donate Paypal"></a>
</p>
Expand Down

0 comments on commit 25b3563

Please sign in to comment.