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:
parent
130bda0cc9
commit
8fab1fa811
6
.github/workflows/submodule-update.yml
vendored
6
.github/workflows/submodule-update.yml
vendored
@ -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 }}',
|
||||
|
Loading…
x
Reference in New Issue
Block a user