diff --git a/.github/workflows/release-monitor.yml b/.github/workflows/release-monitor.yml new file mode 100644 index 00000000..46883550 --- /dev/null +++ b/.github/workflows/release-monitor.yml @@ -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.` + });