mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 05:04:15 +01:00
Merge branch 'master' into flytext-fixes2
This commit is contained in:
commit
0edc724a06
1 changed files with 9 additions and 2 deletions
11
.github/workflows/update-submodules.yml
vendored
11
.github/workflows/update-submodules.yml
vendored
|
|
@ -33,14 +33,21 @@ jobs:
|
||||||
- name: Update submodule
|
- name: Update submodule
|
||||||
run: |
|
run: |
|
||||||
git checkout -b csupdate-${{ matrix.branches }}
|
git checkout -b csupdate-${{ matrix.branches }}
|
||||||
|
git reset --hard origin/${{ matrix.branches }}
|
||||||
cd lib/FFXIVClientStructs
|
cd lib/FFXIVClientStructs
|
||||||
git fetch
|
git fetch
|
||||||
git reset --hard origin/main
|
git reset --hard origin/main
|
||||||
cd ../..
|
cd ../..
|
||||||
git add lib/FFXIVClientStructs
|
git add lib/FFXIVClientStructs
|
||||||
git commit --message "Update ClientStructs"
|
git commit --message "Update ClientStructs"
|
||||||
git push origin csupdate-${{ matrix.branches }}
|
git push origin csupdate-${{ matrix.branches }} --force
|
||||||
- name: Create PR
|
- name: Create PR
|
||||||
run: |
|
run: |
|
||||||
echo ${{ secrets.UPDATE_PAT }} | gh auth login --with-token
|
echo ${{ secrets.UPDATE_PAT }} | gh auth login --with-token
|
||||||
gh pr create --head csupdate-${{ matrix.branches }} --title "[${{ matrix.branches }}] Update ClientStructs" --body "" --base ${{ matrix.branches }}
|
prNumber=$(gh pr list --base ${{ matrix.branches }} --head csupdate-${{ matrix.branches }} --state open --json number --template "{{range .}}{{.number}}{{end}}")
|
||||||
|
if [ -z "$prNumber" ]; then
|
||||||
|
echo "No PR found, creating one"
|
||||||
|
gh pr create --head csupdate-${{ matrix.branches }} --title "[${{ matrix.branches }}] Update ClientStructs" --body "" --base ${{ matrix.branches }}
|
||||||
|
else
|
||||||
|
echo "PR already exists, ignoring"
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue