2022-03-31 15:03:48 -06:00
|
|
|
name: Buildmaster rebuild
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
pull_request:
|
|
|
|
description: Pull request ID
|
2022-04-12 12:48:19 -06:00
|
|
|
type: string
|
2022-03-31 15:03:48 -06:00
|
|
|
required: true # remove if we support commit rebuilds later
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
rebuild:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Trigger Buildmaster
|
|
|
|
steps:
|
|
|
|
- name: Set up Python 3
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: 3
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
pip install requests
|
|
|
|
- name: Clone DFHack
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
with:
|
|
|
|
fetch-depth: 1
|
|
|
|
submodules: false
|
|
|
|
- name: Run
|
|
|
|
env:
|
|
|
|
DFHACK_BUILDMASTER_WEBHOOK_URL: ${{ secrets.DFHACK_BUILDMASTER_WEBHOOK_URL }}
|
|
|
|
DFHACK_BUILDMASTER_WEBHOOK_SECRET: ${{ secrets.DFHACK_BUILDMASTER_WEBHOOK_SECRET }}
|
|
|
|
GITHUB_REPO: ${{ github.repository }}
|
|
|
|
GITHUB_TOKEN: ${{ github.token }}
|
|
|
|
run: |
|
2022-03-31 21:39:17 -06:00
|
|
|
python ci/buildmaster-rebuild-pr.py --pull-request ${{ github.event.inputs.pull_request }}
|