diff --git a/.github/workflows/release/release_report_error.yml b/.github/workflows/release/release_report_error.yml new file mode 100644 index 000000000000..75dde4ba14d3 --- /dev/null +++ b/.github/workflows/release/release_report_error.yml @@ -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 }} \ No newline at end of file diff --git a/.github/workflows/release_production.yml b/.github/workflows/release_production.yml index 73b1828d17dc..6b46ff9206e3 100644 --- a/.github/workflows/release_production.yml +++ b/.github/workflows/release_production.yml @@ -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 }} \ No newline at end of file + app-version: ${{ github.event.inputs.app-version }} + + report_workflow_failed: + if: ${{ failure() }} + uses: ./.github/workflows/release_report_error.yml \ No newline at end of file