mirror of
https://github.com/block/goose.git
synced 2026-04-28 11:39:43 +00:00
41 lines
1 KiB
YAML
41 lines
1 KiB
YAML
name: Release Monitor
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
workflow_dispatch: # Add this line to enable manual triggering
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: '3.x'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install pipx
|
|
pipx install goose-ai
|
|
|
|
- name: Check Goose AI Version
|
|
run: goose version
|
|
|
|
- name: Create Issue on Failure
|
|
if: failure()
|
|
uses: actions/github-script@v3
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
script: |
|
|
const { owner, repo } = context.repo;
|
|
await github.issues.create({
|
|
owner: owner,
|
|
repo: repo,
|
|
title: 'Release Build Failed',
|
|
body: `The release for version ${{ github.event.release.tag_name }} failed to run. Please investigate the issue.`
|
|
});
|