From 9e1369994d87c6c44e0f45e5389ea2ea7adbd99b Mon Sep 17 00:00:00 2001 From: Corneil du Plessis Date: Thu, 14 Nov 2024 13:25:49 +0200 Subject: [PATCH] Fix common CI workflow (#572) Removes the extra github-token not required in setup_java@v4. --- .github/workflows/common.yml | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/.github/workflows/common.yml b/.github/workflows/common.yml index 9ecfed8b..c7eb92fa 100644 --- a/.github/workflows/common.yml +++ b/.github/workflows/common.yml @@ -258,24 +258,6 @@ jobs: path: 'stream-applications/**/target/surefire-reports' retention-days: 7 if-no-files-found: ignore - - name: 'Action: Re-run ${{ github.workflow }}' - if: ${{ failure() }} - shell: bash - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - gh run view ${{ github.run_id }} -v | grep "^X" - FAILURES=$(gh run view ${{ github.run_id }} -v | grep "^X") - COUNT_TESTS=$(echo "$FAILURES" | grep -c -F "tests ") - if((COUNT_TESTS > 0)); then - echo "::info ::Re-run ${{ github.workflow }} run ${{ github.run_id }}" - gh run rerun ${{ github.run_id }} --failed --debug - else - echo "Checked ${{ github.workflow }} run ${{ github.run_id }}. No failures in tests jobs:" - for msg in $FAILURES; do - echo "$msg" - done - fi processors: if: ${{ github.repository == 'spring-cloud/stream-applications' && needs.parameters.outputs.processors != '' && needs.parameters.outputs.processors != null }} needs: @@ -311,7 +293,6 @@ jobs: with: java-version: ${{ needs.parameters.outputs.jdk_build }} distribution: 'graalvm' - github-token: ${{ secrets.GITHUB_TOKEN }} - name: 'Configure: cache for maven dependencies' uses: actions/cache@v3 with: