From 8fab1fa8111d512b7856385d7b68fe2266c20d4b Mon Sep 17 00:00:00 2001 From: Athanasius Date: Sat, 17 Dec 2022 11:25:16 +0000 Subject: [PATCH] github/submodule-update: Make better branch names --- .github/workflows/submodule-update.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/submodule-update.yml b/.github/workflows/submodule-update.yml index 3d0b5d57..407f567d 100644 --- a/.github/workflows/submodule-update.yml +++ b/.github/workflows/submodule-update.yml @@ -46,9 +46,9 @@ jobs: - name: Create submodules changes branch if: steps.check_for_changes.outputs.changes == 'true' run: | - git checkout -b $GITHUB_RUN_ID + git checkout -b "submodule-change/$GITHUB_RUN_ID" git commit -am "updating submodules" - git push --set-upstream origin $GITHUB_RUN_ID + git push --set-upstream origin "submodule-change/$GITHUB_RUN_ID" - name: Create pull request against target branch if: steps.check_for_changes.outputs.changes == 'true' @@ -59,7 +59,7 @@ jobs: await github.rest.pulls.create({ owner: '${{ github.repository_owner }}', repo: '${{ github.repository }}'.split('/')[1].trim(), - head: process.env.GITHUB_RUN_ID, + head: 'submodule-change/${{ github.run_id }}', base: '${{ github.ref }}', title: `[Auto-generated] Submodule Updates ${process.env.GITHUB_RUN_ID}`, body: '${{ steps.check_for_changes.outputs.changes_text }}',