Skip to content

Commit 46b5d39

Browse files
authored
Merge pull request #11917 from andriyDev/UpdateLeaderboardAutomation
Create Github Action automation of update-leaderboard
2 parents 34d874f + 2b5fce0 commit 46b5d39

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/leaderboard.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: "update-leaderboard"
2+
on:
3+
push:
4+
tags-ignore:
5+
- 'v*-beta.*'
6+
release:
7+
types: [published]
8+
jobs:
9+
update-leaderboard:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-go@v2
14+
with:
15+
go-version: ${{env.GO_VERSION}}
16+
stable: true
17+
- name: Update Leaderboard
18+
id: leaderboard
19+
run: |
20+
make update-leaderboard
21+
echo "::set-output name=changes::$(git status --porcelain)"
22+
- name: Create PR
23+
if: ${{ steps.leaderboard.outputs.changes != '' }}
24+
uses: peter-evans/create-pull-request@v3
25+
with:
26+
token: ${{ secrets.MINIKUBE_BOT_PAT }}
27+
commit-message: Update leaderboard
28+
committer: minikube-bot <[email protected]>
29+
author: minikube-bot <[email protected]>
30+
branch: leaderboard
31+
push-to-fork: minikube-bot/minikube
32+
base: master
33+
delete-branch: true
34+
title: 'Update leaderboard'
35+
body: |
36+
Committing changes resulting from `make update-leaderboard`.
37+
This PR is auto-generated by the [update-leaderboard](https://github.com/kubernetes/minikube/blob/master/.github/workflows/leaderboard.yml) CI workflow.
38+
```
39+
${{ steps.leaderboard.outputs.changes }}
40+
```

0 commit comments

Comments
 (0)