mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-21 11:27:38 +03:00
github/submodule-update: Move back to using our defined env
We need to run against `develop`, even when on `main` using a cron, so actually use the environment vars we define.
This commit is contained in:
parent
414f9d8dae
commit
273962e679
5
.github/workflows/submodule-update.yml
vendored
5
.github/workflows/submodule-update.yml
vendored
@ -25,6 +25,7 @@ jobs:
|
||||
run: |
|
||||
git config user.name github-actions
|
||||
git config user.email github-actions@github.com
|
||||
git checkout $CHECKOUT_BRANCH
|
||||
git submodule update --remote
|
||||
|
||||
- name: Check for changes
|
||||
@ -45,7 +46,7 @@ jobs:
|
||||
- name: Create submodules changes branch
|
||||
if: steps.check_for_changes.outputs.changes == 'true'
|
||||
run: |
|
||||
git checkout -b "submodule-change/$GITHUB_RUN_ID"
|
||||
git checkout -b "submodule-change/$GITHUB_RUN_ID" $CHECKOUT_BRANCH
|
||||
git commit -am "updating submodules"
|
||||
git push --set-upstream origin "submodule-change/$GITHUB_RUN_ID"
|
||||
|
||||
@ -59,7 +60,7 @@ jobs:
|
||||
owner: '${{ github.repository_owner }}',
|
||||
repo: '${{ github.repository }}'.split('/')[1].trim(),
|
||||
head: 'submodule-change/${{ github.run_id }}',
|
||||
base: '${{ github.ref }}',
|
||||
base: '$PR_AGAINST_BRANCH',
|
||||
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