mirror of
https://github.com/aljazceru/goose.git
synced 2026-01-06 07:54:23 +01:00
fix: adding a release checker (#176)
This commit is contained in:
41
.github/workflows/release-monitor.yml
vendored
Normal file
41
.github/workflows/release-monitor.yml
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
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.`
|
||||
});
|
||||
Reference in New Issue
Block a user