Start new voting epoch #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
genPayload: | |
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: "Generate incentives run for ${{ github.event.inputs.epoch_end_date }}" | |
# title: "Generate incentives run for ${{ github.event.inputs.epoch_end_date }}" | |
# assignees: franzns | |
# branch: gha-payment-round | |
# delete-branch: true | |
# labels: "Automated PR" | |
# branch-suffix: timestamp |