Skip to content

Commit

Permalink
Updated workflows from master
Browse files Browse the repository at this point in the history
  • Loading branch information
offtherailz committed Dec 6, 2023
1 parent a3cedf0 commit 20e41e4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
name: checks

on:
workflow_call:
push:
branches:
- master
# using filter pattern: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
- '[cC][0-9][0-9][0-9]-+**' # c123 or c123-something for custom branch
- '[0-9][0-9][0-9][0-9].[0-9][0-9].xx' # stable brances. E.g. 2021.01.xx
- 'push-action/**'
pull_request:
branches:
- master
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/submodules_update.yml
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:

Expand All @@ -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 }}

0 comments on commit 20e41e4

Please sign in to comment.