Skip to content

Commit

Permalink
chore (ci):... [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
gesinn-it-gea committed Aug 5, 2024
1 parent 01d8c78 commit 971c60f
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/update-submodules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,24 +46,19 @@ jobs:
echo "::set-output name=needs_update::false"
fi
- name: Create new branch and commit changes
- name: Create a new branch for changes
if: steps.update_submodules.outputs.needs_update == 'true'
run: |
git checkout -b update-submodules-branch
git add .
git commit -m "Update submodules to latest commits"
- name: Pull latest changes from remote
- name: Commit and push changes
if: steps.update_submodules.outputs.needs_update == 'true'
run: |
git pull --rebase origin update-submodules-branch || true
- name: Push changes
if: steps.update_submodules.outputs.needs_update == 'true'
run: |
git push origin update-submodules-branch
git add .
git commit -m "Update submodules to latest commits"
git push origin update-submodules-branch --force
- name: Create Pull Request
- name: Create or update Pull Request
if: steps.update_submodules.outputs.needs_update == 'true'
uses: peter-evans/create-pull-request@v5
with:
Expand Down

0 comments on commit 971c60f

Please sign in to comment.