Skip to content

Commit

Permalink
Fix common CI workflow (#572)
Browse files Browse the repository at this point in the history
Removes the extra github-token not required in setup_java@v4.
  • Loading branch information
corneil authored Nov 14, 2024
1 parent e46b43b commit 9e13699
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 9e13699

Please sign in to comment.