Skip to content

Commit bfed53d

Browse files
committed
Address comments
1 parent b183664 commit bfed53d

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

.github/workflows/label.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# This workflow will triage pull requests and apply a label based on the
1717
# paths that are modified in the pull request.
1818
#
19-
# To use this workflow, you will need to set up a .github/label.yml
19+
# To use this workflow, you will need to set up a .github/labeler.yml
2020
# file with configuration. For more information, see:
2121
# https://github.com/actions/labeler
2222

@@ -35,12 +35,19 @@ permissions:
3535
jobs:
3636
label:
3737
runs-on: ubuntu-latest
38-
permissions:
39-
checks: write
40-
contents: read
41-
pull-requests: write
42-
4338
steps:
39+
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
40+
uses: actions/checkout@v6
41+
with:
42+
persist-credentials: false
43+
submodules: recursive
44+
- name: "Get information about the original trigger of the run"
45+
uses: ./.github/actions/get-workflow-origin
46+
id: source-run-info
47+
with:
48+
token: ${{ secrets.GITHUB_TOKEN }}
49+
sourceRunId: ${{ github.event.workflow_run.id }}
4450
- uses: actions/labeler@v6
4551
with:
46-
repo-token: "${{ secrets.GITHUB_TOKEN }}"
52+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
53+
pr-number: ${{ steps.source-run-info.outputs.pullRequestNumber }}

.github/workflows/label_trigger.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
# This workflow will triage pull requests and apply a label based on the
17-
# paths that are modified in the pull request.
18-
#
19-
# To use this workflow, you will need to set up a .github/label.yml
20-
# file with configuration. For more information, see:
21-
# https://github.com/actions/labeler
22-
2316
name: Labeler-Trigger
2417
on:
2518
pull_request:

0 commit comments

Comments
 (0)