Skip to content

Commit

Permalink
ci: Open an issue when building docs fails on main
Browse files Browse the repository at this point in the history
  • Loading branch information
aborgna-q committed Dec 2, 2024
1 parent fdc0526 commit 9311ccd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,22 @@ jobs:
with:
path: ./docs/build/

# Create an issue if building docs fails.
create-issue:
uses: CQCL/hugrverse-actions/.github/workflows/create-issue.yml@main
needs: build
if: always() && needs.build.result == 'failure' && github.event_name == 'push'
secrets:
GITHUB_PAT: ${{ secrets.HUGRBOT_PAT }}
with:
title: "💥 Docs building is fails on main"
body: |
The doc building workflow has failed on the main branch.
[https://github.com/CQCL/guppylang/actions/runs/${{ github.run_id }}](Please investigate).
unique-label: "docs-fail"
other-labels: "bug"

publish:
name: Publish docs.
environment:
Expand Down

0 comments on commit 9311ccd

Please sign in to comment.