Skip to content

Commit bbfc6b2

Browse files
committed
refactor(ci subvolues): runs, name
1 parent 69b4b8d commit bbfc6b2

1 file changed

Lines changed: 5 additions & 12 deletions

File tree

.github/workflows/update-submodules.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,20 @@ jobs:
1414
submodules: true
1515
token: ${{ secrets.DOTFILES }}
1616

17-
- name: Update submodules
18-
run: |
19-
git submodule update --init --recursive
20-
git submodule update --recursive --remote
21-
22-
- name: Commit changes
23-
run: |
17+
- run: |
18+
git submodule update --init --recursive --remote
2419
git config user.name "github-actions[bot]"
2520
git config user.email "github-actions[bot]@users.noreply.github.com"
2621
git add .
27-
git commit -m "Update submodules" || echo "No changes to commit"
22+
git commit -m "Update submodules" || exit 0
2823
29-
- name: Create Pull Request
30-
id: pr
24+
- id: pr
3125
uses: peter-evans/create-pull-request@v7
3226
with:
3327
title: Update SubModules
3428
token: ${{ secrets.DOTFILES }}
3529

36-
- name: Merge PR
37-
if: steps.pr.outputs.pull-request-number
30+
- if: steps.pr.outputs.pull-request-number
3831
run: gh pr merge ${{ steps.pr.outputs.pull-request-number }} --merge --auto
3932
env:
4033
GH_TOKEN: ${{ secrets.DOTFILES }}

0 commit comments

Comments
 (0)