From ce9ca667b1f56c9cc70358a52b6e6c7a7894fac6 Mon Sep 17 00:00:00 2001 From: Jack Green Date: Tue, 23 Jun 2026 17:09:02 +0100 Subject: [PATCH] Fix automated PR creation from branch in `package.yml` When executing from a branch, we need to qualify `master` so that it can be found otherwise it [fails](https://github.com/hz-devops-test/rel-scripts/actions/runs/28038725804): > fatal: 'master' is not a commit and a branch 'package_run_28038725804' cannot be created from it Tested [here](https://github.com/hz-devops-test/rel-scripts/actions/runs/28039180242). --- .github/workflows/package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 6be85d9..06312da 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -93,7 +93,7 @@ jobs: # But when testing changes, if running from the non-default branch (e.g. a branch with your workflow changes), the resultant version update PR will _also_ include those changes git checkout \ -b "${{ github.job }}_run_${{ github.run_id }}" \ - ${{ github.event.repository.default_branch }} + remotes/origin/${{ github.event.repository.default_branch }} git commit \ --all \