File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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:
3535jobs :
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 }}
Original file line number Diff line number Diff line change 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-
2316name : Labeler-Trigger
2417on :
2518 pull_request :
You can’t perform that action at this time.
0 commit comments