forked from unikraft/unikraft
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 1019 Bytes
/
label.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: governctl
on:
pull_request_target:
types: [opened, synchronize, reopened]
permissions:
contents: read
pull-requests: write
jobs:
label:
runs-on: ubuntu-latest
name: label
steps:
- name: Get Pull Request Number
run: echo "PR_NUMBER=$(echo ${{ github.event.number }} | sed 's/\//\\\//g')" >> "$GITHUB_ENV"
shell: bash
- name: Install governctl
run: |
set -xe
wget -q "https://github.com/unikraft/governance/releases/download/v${GOVERN_VERSION}/governance_${GOVERN_VERSION}_linux_amd64.deb"
sudo dpkg -i "governance_${GOVERN_VERSION}_linux_amd64.deb"
env:
GOVERN_VERSION: 0.1.9
- name: Label PR
run: governctl pr sync labels "unikraft/unikraft/${PR_NUMBER}" --labels-dir .github/labels
env:
GOVERN_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOVERN_GITHUB_USER: ${{ secrets.GH_CHECKPATCH_ACTOR }}
GOVERN_NO_RENDER: true
GOVERN_LOG_LEVEL: warn