diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 4e1e164906f..e65e5ba5398 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -241,3 +241,17 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + report_logs: + runs-on: ubuntu-latest + needs: [test] + if: ${{ !github.event.pull_request.draft && always() }} + name: Report GH Logs on Failure + permissions: + actions: read + contents: read + steps: + - name: Upload failed job logs + uses: TykTechnologies/github-actions/.github/actions/gh-logs-analyser@main + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + gh_logs_analyser_token: ${{ secrets.GH_LOGS_ANALYSER }} diff --git a/.github/workflows/lint-swagger.yml b/.github/workflows/lint-swagger.yml index 638f25f6476..6fcd415523d 100644 --- a/.github/workflows/lint-swagger.yml +++ b/.github/workflows/lint-swagger.yml @@ -105,3 +105,17 @@ jobs: ${{ steps.api-check.outputs.diff-output || 'no api changes detected' }} ``` edit-mode: replace + report_logs: + runs-on: ubuntu-latest + needs: [redocly_validator, diff_swagger] + if: ${{ !github.event.pull_request.draft && always() }} + name: Report GH Logs on Failure + permissions: + actions: read + contents: read + steps: + - name: Upload failed job logs + uses: TykTechnologies/github-actions/.github/actions/gh-logs-analyser@main + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + gh_logs_analyser_token: ${{ secrets.GH_LOGS_ANALYSER }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 19226e8b323..1a3b47722b0 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -27,3 +27,18 @@ jobs: secrets: JIRA_TOKEN: ${{ secrets.JIRA_TOKEN }} ORG_GH_TOKEN: ${{ secrets.ORG_GH_TOKEN }} + + report_logs: + runs-on: ubuntu-latest + needs: [godoc, jira] + if: ${{ !github.event.pull_request.draft && always() }} + name: Report GH Logs on Failure + permissions: + actions: read + contents: read + steps: + - name: Upload failed job logs + uses: TykTechnologies/github-actions/.github/actions/gh-logs-analyser@main + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + gh_logs_analyser_token: ${{ secrets.GH_LOGS_ANALYSER }} diff --git a/.github/workflows/release-tests.yml b/.github/workflows/release-tests.yml index d470cdc9748..27d68f89616 100644 --- a/.github/workflows/release-tests.yml +++ b/.github/workflows/release-tests.yml @@ -102,3 +102,17 @@ jobs: cd - fi done + report_logs: + runs-on: ubuntu-latest + needs: [opentelemetry-e2e, ci-tests, smoke-tests] + if: ${{ !github.event.pull_request.draft && always() }} + name: Report GH Logs on Failure + permissions: + actions: read + contents: read + steps: + - name: Upload failed job logs + uses: TykTechnologies/github-actions/.github/actions/gh-logs-analyser@main + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + gh_logs_analyser_token: ${{ secrets.GH_LOGS_ANALYSER }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d6363cc75ed..e3295205236 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -646,3 +646,17 @@ jobs: DEPDASH_URL: ${{ secrets.DEPDASH_URL }} DEPDASH_KEY: ${{ secrets.DEPDASH_KEY }} ORG_GH_TOKEN: ${{ secrets.ORG_GH_TOKEN }} + report_logs: + runs-on: ubuntu-latest + needs: [goreleaser, test-controller-api, test-controller-distros, upgrade-deb, upgrade-rpm] + if: ${{ !github.event.pull_request.draft && always() }} + name: Report GH Logs on Failure + permissions: + actions: read + contents: read + steps: + - name: Upload failed job logs + uses: TykTechnologies/github-actions/.github/actions/gh-logs-analyser@main + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + gh_logs_analyser_token: ${{ secrets.GH_LOGS_ANALYSER }} diff --git a/.github/workflows/update-tyk-analytics.yml b/.github/workflows/update-tyk-analytics.yml index 17795b0430f..fc973c09792 100644 --- a/.github/workflows/update-tyk-analytics.yml +++ b/.github/workflows/update-tyk-analytics.yml @@ -26,3 +26,16 @@ jobs: repository: TykTechnologies/tyk-sink event-type: new-tyk client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}' + report_logs: + runs-on: ubuntu-latest + needs: [sync] + name: Report GH Logs on Failure + permissions: + actions: read + contents: read + steps: + - name: Upload failed job logs + uses: TykTechnologies/github-actions/.github/actions/gh-logs-analyser@main + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + gh_logs_analyser_token: ${{ secrets.GH_LOGS_ANALYSER }}