From d2190ac5837f3a551b4c7775d0045036c9e002d8 Mon Sep 17 00:00:00 2001 From: Samuel Burnham <45365069+samuelburnham@users.noreply.github.com> Date: Fri, 9 Aug 2024 22:42:58 -0400 Subject: [PATCH] ci: Open issue on `fixtures.yml` failure --- .github/FIXTURES.md | 7 +++++++ .github/workflows/fixtures.yml | 10 ++++++++++ 2 files changed, 17 insertions(+) create mode 100644 .github/FIXTURES.md diff --git a/.github/FIXTURES.md b/.github/FIXTURES.md new file mode 100644 index 00000000..1d7d95a6 --- /dev/null +++ b/.github/FIXTURES.md @@ -0,0 +1,7 @@ +--- +title: "ci: Fixture update workflow is broken" +labels: debt, automated issue +--- +The nightly fixture generator workflow failed. + +Triggered by: {{ env.WORKFLOW_URL }} diff --git a/.github/workflows/fixtures.yml b/.github/workflows/fixtures.yml index eff1bfdc..c66977a4 100644 --- a/.github/workflows/fixtures.yml +++ b/.github/workflows/fixtures.yml @@ -46,6 +46,15 @@ jobs: if-no-files-found: error overwrite: true retention-days: 1 + - uses: JasonEtco/create-an-issue@v2 + if: ${{ failure() }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + WORKFLOW_URL: + ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + with: + update_existing: true + filename: .github/FIXTURES.md create-pull-request: needs: generate-fixtures @@ -70,6 +79,7 @@ jobs: - name: Create Pull Request uses: peter-evans/create-pull-request@v6 with: + token: "${{ secrets.REPO_TOKEN }}" branch: "ci-update-fixtures" title: "chore: Update fixtures" commit-message: "chore: Update fixtures"