Skip to content

Commit

Permalink
Updated workflow to checkout main before running script
Browse files Browse the repository at this point in the history
  • Loading branch information
sethkfman committed Nov 1, 2023
1 parent 0680ac5 commit 72fe077
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/create-cherry-pick-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 72fe077

Please sign in to comment.