Skip to content

Commit

Permalink
Set an explicit ref for checkout too
Browse files Browse the repository at this point in the history
Since this makes development easier, since when triggering a manual
workflow_dispatch for a non-main branch, the newly opened PR
will still target main.
  • Loading branch information
edmorley committed Oct 19, 2023
1 parent 984eeb1 commit 170c037
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/update-lifecycle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
# We always want the version bump and resultant PR to target main, not the branch of the workflow_dispatch.
ref: main
token: ${{ steps.generate-token.outputs.app_token }}

- name: Record existing lifecycle version
Expand Down

0 comments on commit 170c037

Please sign in to comment.