1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 08:17:13 +03:00

github/submodule-update: Make better branch names

This commit is contained in:
Athanasius 2022-12-17 11:25:16 +00:00
parent 130bda0cc9
commit 8fab1fa811
No known key found for this signature in database
GPG Key ID: 772697E181BB2767

View File

@ -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 }}',