Skip to content

Commit

Permalink
Update PR comment job
Browse files Browse the repository at this point in the history
  • Loading branch information
bigdaz committed Jan 1, 2024
1 parent d70a5b6 commit 9682002
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/demo-job-summary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Demo Job Summary, for Gradle builds
on:
workflow_dispatch:
push:
pull_request:

env:
GRADLE_BUILD_ACTION_CACHE_DEBUG_ENABLED: true
Expand All @@ -21,8 +20,6 @@ jobs:
npm run build
- name: Setup Gradle
uses: ./
with:
add-pr-comment: true
- name: Build kotlin-dsl project
working-directory: .github/workflow-samples/kotlin-dsl
run: ./gradlew assemble
Expand Down Expand Up @@ -63,8 +60,6 @@ jobs:
touch ~/.gradle/caches/dummy.txt
- name: Setup Gradle
uses: ./
with:
add-pr-comment: true
- name: Run build
working-directory: .github/workflow-samples/groovy-dsl
run: ./gradlew assemble
13 changes: 2 additions & 11 deletions .github/workflows/demo-pr-build-scan-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,9 @@ jobs:
uses: actions/checkout@v4
- name: Setup Gradle
uses: ./
with:
add-pr-comment: true
- name: Run build with Gradle wrapper
id: gradle
working-directory: .github/workflow-samples/kotlin-dsl
run: ./gradlew build --scan
- name: "Add Build Scan URL as PR comment"
uses: actions/github-script@v7
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'PR ready for review: ${{ steps.gradle.outputs.build-scan-url }}'
})

0 comments on commit 9682002

Please sign in to comment.