diff --git a/.github/workflows/dependency-update.yml b/.github/workflows/dependency-update.yml index a71906a5f..aed23534f 100644 --- a/.github/workflows/dependency-update.yml +++ b/.github/workflows/dependency-update.yml @@ -30,8 +30,8 @@ jobs: uses: peter-evans/create-pull-request@v2 with: token: ${{ secrets.GH_TOKEN }} - committer: GitHub - author: micronaut-build + committer: micronaut-build <${{ secrets.MICRONAUT_BUILD_EMAIL }}> + author: micronaut-build <${{ secrets.MICRONAUT_BUILD_EMAIL }}> commit-message: Update dependencies title: 'Dependency upgrades' body: Upgrades dependencies to their latest versions diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index c94d23459..48a656291 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -39,6 +39,12 @@ jobs: run: ./gradlew dependencyUpdates check --parallel --continue env: TESTCONTAINERS_RYUK_DISABLED: true + - name: Publish Test Report + if: failure() + uses: scacap/action-surefire-report@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + report_paths: '**/build/test-results/test/TEST-*.xml' - name: Publish to JFrog OSS if: success() && github.event_name == 'push' && matrix.java == '8' env: diff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.yml index 89933a8fe..a6d6eec32 100644 --- a/.github/workflows/release-notes.yml +++ b/.github/workflows/release-notes.yml @@ -3,15 +3,15 @@ # https://github.com/micronaut-projects/micronaut-project-template/tree/master/.github/workflows # # and edit them there. Note that it will be sync'ed to all the Micronaut repos -name: Release Notes +name: Changelog on: pull_request: - types: [closed, labeled] + types: closed branches: - master - '[1-9]+.[0-9]+.x' issues: - types: [closed,reopened, labeled] + types: [closed,reopened] push: branches: - master @@ -33,7 +33,7 @@ jobs: - uses: release-drafter/release-drafter@v5 if: steps.check_release_drafter.outputs.has_release_drafter == 'true' env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} # Otherwise: - name: Export Gradle Properties @@ -43,6 +43,7 @@ jobs: if: steps.check_release_drafter.outputs.has_release_drafter == 'false' id: release_notes with: + token: ${{ secrets.GH_TOKEN }} branch: ${{ env.githubBranch }} - uses: ncipollo/release-action@v1 if: steps.check_release_drafter.outputs.has_release_drafter == 'false' @@ -53,4 +54,4 @@ jobs: name: ${{ env.title }} ${{ steps.release_notes.outputs.next_version }} tag: v${{ steps.release_notes.outputs.next_version }} bodyFile: CHANGELOG.md - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.GH_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b4c9fbc57..1b4bff605 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,6 +23,8 @@ jobs: run: echo ::set-output name=release_version::${GITHUB_REF:11} - name: Run pre-release uses: micronaut-projects/github-actions/pre-release@master + env: + MICRONAUT_BUILD_EMAIL: ${{ secrets.MICRONAUT_BUILD_EMAIL }} with: token: ${{ secrets.GITHUB_TOKEN }} - name: Publish to Bintray @@ -52,11 +54,15 @@ jobs: continue-on-error: true - name: Update BOM uses: micronaut-projects/github-actions/update-bom@master + env: + MICRONAUT_BUILD_EMAIL: ${{ secrets.MICRONAUT_BUILD_EMAIL }} with: token: ${{ secrets.GH_TOKEN }} continue-on-error: true - name: Run post-release if: success() uses: micronaut-projects/github-actions/post-release@master + env: + MICRONAUT_BUILD_EMAIL: ${{ secrets.MICRONAUT_BUILD_EMAIL }} with: token: ${{ secrets.GITHUB_TOKEN }}