From 72fe0774b3fc8d5df6e9d5f477e8063be43e4028 Mon Sep 17 00:00:00 2001 From: sethkfman Date: Wed, 1 Nov 2023 12:36:20 -0600 Subject: [PATCH] Updated workflow to checkout main before running script --- .github/workflows/create-cherry-pick-pr.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/create-cherry-pick-pr.yml b/.github/workflows/create-cherry-pick-pr.yml index 91f071b0e60..b17d8cf88b3 100644 --- a/.github/workflows/create-cherry-pick-pr.yml +++ b/.github/workflows/create-cherry-pick-pr.yml @@ -23,17 +23,7 @@ jobs: steps: - uses: actions/checkout@v3 with: - # This is to guarantee that the most recent tag is fetched. - # This can be configured to a more reasonable value by consumers. - fetch-depth: 0 - # We check out the specified branch, which will be used as the base - # branch for all git operations and the patch PR. - ref: ${{ github.event.inputs.branch_name }} - # The last step of this workflow creates a patch branch, which shall itself - # trigger another workflow: 'create-bug-report.yml'. However, there is a security - # feature in Github that prevents workflows from triggering other workflows by default. - # The workaround is to use a personal access token (BUG_REPORT_TOKEN) instead of - # the default GITHUB_TOKEN for the checkout action. + ref: main token: ${{ secrets.BUG_REPORT_TOKEN }} - name: Get Node.js version id: nvm