Skip to content

Commit

Permalink
report error task created
Browse files Browse the repository at this point in the history
  • Loading branch information
malmstein committed Oct 16, 2024
1 parent f7a7c60 commit 7f09449
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release/release_report_error.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Report Workflow Failed

on:
workflow_dispatch:

env:
ASANA_PAT: ${{ secrets.GH_ASANA_SECRET }}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
report-release-error:
name: Create Asana Task
runs-on: ubuntu-20.04

steps:
- name: Create Asana task when workflow failed
uses: honeycombio/gha-create-asana-task@main
with:
asana-secret: ${{ secrets.GH_ASANA_SECRET }}
asana-workspace-id: ${{ secrets.GH_ASANA_WORKSPACE_ID }}
asana-project-id: ${{ secrets.GH_ASANA_AOR_PROJECT_ID }}
asana-section-id: ${{ secrets.GH_ASANA_INCOMING_ID }}
asana-task-name: GH Workflow Failure - Production Release
asana-task-description: The end to end workflow has failed. See https://github.com/duckduckgo/Android/actions/runs/${{ github.run_id }}
8 changes: 6 additions & 2 deletions .github/workflows/release_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ jobs:
app-version: ${{ github.event.inputs.app-version }}

launch_release_tests:
needs: launch_release_tests
needs: create_release_tag
uses: ./.github/workflows/release_tests.yml
with:
app-version: ${{ github.event.inputs.app-version }}
app-version: ${{ github.event.inputs.app-version }}

report_workflow_failed:
if: ${{ failure() }}
uses: ./.github/workflows/release_report_error.yml

0 comments on commit 7f09449

Please sign in to comment.