Skip to content

Commit 5ecc4cb

Browse files
committed
Mock change
1 parent 15a0b07 commit 5ecc4cb

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/update-dependency-reminder.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name: "Remind to run update_dependency.sh"
22

33
on:
4-
pull_request:
4+
# Use pull_request to pull_request_target to grant write access for forks
5+
pull_request_target:
56
branches: ["master"]
67
types: [opened, synchronize, reopened]
78

@@ -15,6 +16,10 @@ jobs:
1516
steps:
1617
- name: Checkout repository
1718
uses: actions/checkout@v4
19+
with:
20+
# Important for pull_request_target: explicitly check out the PR merge commit,
21+
# otherwise it defaults to checking out the main/base branch.
22+
ref: ${{ github.event.pull_request.head.sha }}
1823

1924
- name: Check for changed lockfiles
2025
id: changed-files
@@ -33,5 +38,5 @@ jobs:
3338
repo: context.repo.repo,
3439
pull_number: context.payload.pull_request.number,
3540
event: 'COMMENT',
36-
body: `### ⚠️ Attention Required: Lockfile Detected\nThis pull request contains modifications to one or more \`*.lockfile\` files. Please confirm that you have run update_dependency.sh to push new dependencies to the private repo.\n\n_The PR author must manually mark this conversation as resolved before merging._`
41+
body: `### ⚠️ Attention Required: Lockfile Detected\nThis pull request contains modifications to one or more \`*.lockfile\` files. Please confirm that you have run update_dependency.sh to upload new dependencies to our private Maven repo.\n\n_The PR author must manually mark this conversation as resolved before merging._`
3742
})

gradle.lockfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# This is a Gradle generated file for dependency locking.
22
# Manual edits can break the build and are not advised.
33
# This file is expected to be part of source control.
4+
#
45
com.google.code.findbugs:jsr305:3.0.2=checkstyle
56
com.google.errorprone:error_prone_annotations:2.36.0=checkstyle
67
com.google.guava:failureaccess:1.0.3=checkstyle

0 commit comments

Comments
 (0)