-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 1.21 KB
/
start_new_voting_epoch.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
35
36
37
38
39
40
name: Start new voting epoch
on:
workflow_dispatch:
inputs:
beets_to_distribute:
description: 'The amounts of BEETS to distribute'
require: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
initEpoch:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install deps
run: bun install --frozen-lockfile
- name: Inititalize new epoch
env:
BEETS_TO_DISTRIBUTE: ${{ github.event.inputs.beets_to_distribute }}
run: bun ts-node ./src/app.ts
- name: Create PR
uses: peter-evans/create-pull-request@v5
with:
commit-message: 'Inititalize new gauge epoch'
title: 'Inititalize new gauge epoch with ${{ github.event.inputs.beets_to_distribute }} BEETS'
assignees: franzns
branch: init-gauge-round
delete-branch: true
labels: 'Automated PR'