Skip to content

Commit

Permalink
ref main & break out commit commands for workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjonas committed Aug 2, 2023
1 parent 9ca0545 commit f51a806
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/update-submodule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,18 @@ jobs:
# Fetch all history so we can push to the repo
fetch-depth: 0
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
ref: main

- name: Configure git
run: |
git config --global user.email "${{secrets.EMAIL}}"
git config --global user.name "${{secrets.NAME}}"
- name: Update submodules
run: |
git submodule update --remote --merge
git commit -m "Updated submodules" || echo "No changes to commit"
git push
run: git submodule update --remote --merge

- name: Commit changes
run: git commit -m "Updated submodules" || echo "No changes to commit"

- name: Push changes
run: git push

0 comments on commit f51a806

Please sign in to comment.