Skip to content

Commit

Permalink
Tweaks for better job output for report jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
stianst committed Jan 11, 2024
1 parent aade037 commit 66e54ce
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/report-failed-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,30 @@ jobs:
distribution: 'temurin'
java-version: '17'

- id: build
run:
mvn clean install

- id: report
env:
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mvn clean install exec:java -Preport-failed-job -Djob="${{ inputs.job }}" -Dissue="${{ inputs.issue }}"
if ( ! git diff --exit-code &>/dev/null ); then
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git add --all
git commit -m "Updated failed-jobs-reporting.yml"
git push
mvn exec:java -Preport-failed-job -Djob="${{ inputs.job }}" -Dissue="${{ inputs.issue }}"
- id: commit
env:
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run:
if ( ! git diff --exit-code &>/dev/null ); then
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git add --all
git commit -m "Updated failed-jobs-reporting.yml"
git push
fi

deploy:
uses: ./.github/workflows/pages.yml
needs: [update]

0 comments on commit 66e54ce

Please sign in to comment.