mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
different syntax to test add command
This commit is contained in:
parent
cfbc629684
commit
c5619890fc
1 changed files with 9 additions and 5 deletions
12
.github/workflows/update-submodules.yml
vendored
12
.github/workflows/update-submodules.yml
vendored
|
|
@ -50,13 +50,17 @@ jobs:
|
||||||
git reset --hard origin/${{ matrix.submodule.branch }}
|
git reset --hard origin/${{ matrix.submodule.branch }}
|
||||||
cd ../..
|
cd ../..
|
||||||
git add ${{ matrix.submodule.path }}
|
git add ${{ matrix.submodule.path }}
|
||||||
|
|
||||||
|
if [[ -z "$(git status --porcelain --untracked-files=no)" ]]; then
|
||||||
|
echo "No changes detected!"
|
||||||
|
echo "SUBMIT_PR=false" >> "$GITHUB_OUTPUT"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
git commit --message "Update ${{ matrix.submodule.name }}"
|
git commit --message "Update ${{ matrix.submodule.name }}"
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
git push origin ${{ matrix.submodule.branch-prefix }}-${{ matrix.branches }} --force
|
git push origin ${{ matrix.submodule.branch-prefix }}-${{ matrix.branches }} --force
|
||||||
echo "SUBMIT_PR=true" >> "$GITHUB_OUTPUT"
|
echo "SUBMIT_PR=true" >> "$GITHUB_OUTPUT"
|
||||||
else
|
|
||||||
echo "SUBMIT_PR=false" >> "$GITHUB_OUTPUT"
|
|
||||||
fi
|
|
||||||
- name: Create PR
|
- name: Create PR
|
||||||
if: ${{ steps.update-submodule.outputs.SUBMIT_PR == 'true' }}
|
if: ${{ steps.update-submodule.outputs.SUBMIT_PR == 'true' }}
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue