-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a3cedf0
commit 20e41e4
Showing
2 changed files
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
|
||
name: Update Submodules | ||
on: | ||
schedule: | ||
# schedule: | ||
# run daily at midnight | ||
- cron: '0 0 * * *' | ||
# - cron: '0 0 * * *' | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
|
@@ -30,4 +30,8 @@ jobs: | |
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Actions - update submodules" | ||
git commit -am "Update submodules" || echo "No changes to commit" | ||
git push | ||
- name: Push to protected branch | ||
uses: CasperWA/push-protected@v2 | ||
with: | ||
token: ${{ secrets.PUSH_PROTECTED_BRANCH_TOKEN }} # This requires a special token to be able to trigger checks on new branch creation | ||
ref: ${{ github.ref }} |