mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-06 10:23:06 +03:00
github/submodule-update: Switch to 'environment' style
As per <https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter>
This commit is contained in:
parent
ede69a9012
commit
acbb8b2294
10
.github/workflows/submodule-update.yml
vendored
10
.github/workflows/submodule-update.yml
vendored
@ -36,21 +36,21 @@ jobs:
|
|||||||
git status --porcelain
|
git status --porcelain
|
||||||
if [ -n "${changes}" ];
|
if [ -n "${changes}" ];
|
||||||
then
|
then
|
||||||
echo '::set-output changes=true'
|
echo 'changes=true' >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
echo '::set-output changes=false'
|
echo 'changes=false' >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
- name: Create submodules changes branch
|
- name: Create submodules changes branch
|
||||||
if: ${{ steps.check_for_changes.outputs.changes }} == 'true'
|
if: steps.check_for_changes.outputs.changes == 'true'
|
||||||
run: |
|
run: |
|
||||||
git checkout -b $GITHUB_RUN_ID
|
git checkout -b $GITHUB_RUN_ID
|
||||||
git commit -am "updating submodules"
|
git commit -am "updating submodules"
|
||||||
git push --set-upstream origin $GITHUB_RUN_ID
|
git push --set-upstream origin $GITHUB_RUN_ID
|
||||||
|
|
||||||
- name: Create pull request against target branch
|
- name: Create pull request against target branch
|
||||||
if: ${{ steps.check_for_changes.outputs.changes }} == 'true'
|
if: steps.check_for_changes.outputs.changes == 'true'
|
||||||
uses: actions/github-script@v6
|
uses: actions/github-script@v6
|
||||||
with:
|
with:
|
||||||
github-token: ${{ inputs.github_token }}
|
github-token: ${{ inputs.github_token }}
|
||||||
@ -65,7 +65,7 @@ jobs:
|
|||||||
});
|
});
|
||||||
|
|
||||||
- name: Add labels
|
- name: Add labels
|
||||||
if: ${{ steps.check_for_changes.outputs.changes }} == 'true'
|
if: steps.check_for_changes.outputs.changes == 'true'
|
||||||
uses: actions/github-script@v6
|
uses: actions/github-script@v6
|
||||||
with:
|
with:
|
||||||
github-token: ${{ inputs.github_token }}
|
github-token: ${{ inputs.github_token }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user