enable benchmark summary for pull requests/ fix auto labeler (#2365)

* enable benchmark summary for pull requests

* enable benchmark summary for pull requests

* correct auto labeler
pull/2368/head
RW 2023-03-10 10:30:52 +01:00 committed by GitHub
parent c1c119337f
commit 9e440635f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 3 deletions

17
.github/labeler.yml vendored Normal file
View File

@ -0,0 +1,17 @@
version: v1
labels:
- label: '📒 Documentation'
matcher:
title: '\b(docs|doc:|\[doc\]|README|typos|comment|documentation)\b|[📝📒📚]'
- label: '☢️ Bug'
matcher:
title: '\b(fix|race|bug|missing|correct)\b|[🐛☢🩹🚨]'
- label: '🧹 Updates'
matcher:
title: '\b(improve|update|refactor|deprecated|remove|unused|test)\b|[⚡👷🚧♻️🎨🧪🧹]'
- label: '🤖 Dependencies'
matcher:
title: '\b(bumb|bdependencies)/b|[📦🤖]'
- label: '✏️ Feature'
matcher:
title: '\b(feature|create|implement|add)\b|[🚀✨🔥]'

View File

@ -16,6 +16,6 @@ jobs:
steps:
- name: Check Labels
id: labeler
uses: fuxingloh/multi-labeler@v1
uses: fuxingloh/multi-labeler@v2
with:
github-token: ${{secrets.GITHUB_TOKEN}}

View File

@ -31,7 +31,7 @@ jobs:
path: ./cache
key: ${{ runner.os }}-benchmark
- name: Save Benchmark Results
uses: rhysd/github-action-benchmark@v1
uses: benchmark-action/github-action-benchmark@v1
with:
tool: 'go'
output-file-path: output.txt
@ -40,5 +40,6 @@ jobs:
fail-on-alert: true
comment-on-alert: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
# Enable Job Summary for PRs
#summary-always: ${{ github.event_name != 'push' && github.event_name != 'workflow_dispatch' }}
summary-always: ${{ github.event_name != 'push' && github.event_name != 'workflow_dispatch' }}
auto-push: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
save-data-file: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}