From 170c0378ca891cea8a5be6e6579b4fbb53ce4e33 Mon Sep 17 00:00:00 2001 From: Ed Morley <501702+edmorley@users.noreply.github.com> Date: Thu, 19 Oct 2023 17:02:46 +0100 Subject: [PATCH] Set an explicit `ref` for checkout too 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. --- .github/workflows/update-lifecycle.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/update-lifecycle.yml b/.github/workflows/update-lifecycle.yml index 55d2092a..ac246d7c 100644 --- a/.github/workflows/update-lifecycle.yml +++ b/.github/workflows/update-lifecycle.yml @@ -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