Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
prokushev authored Mar 25, 2024
1 parent 15ab3bf commit 8209451
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Update submodules

# Controls when the workflow will run
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Cron-based action
schedule:
# * is a special character in YAML so you have to quote this string
# This example triggers the workflow every day at 5:30 and 17:30 UTC
# https://crontab.cronhub.io/
- cron: '0 * * * *'

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:

# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: windows-latest

permissions:
contents: write

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Check out from repository
uses: actions/checkout@v4
with:
# repository: {owner}/repo
token: ${{ secrets.GITHUB_TOKEN }}

# Update references
- name: Git Sumbodule Update
run: |
git submodule update --init --force --remote
# Commit
- name: Commit update
uses: stefanzweifel/git-auto-commit-action@v5

0 comments on commit 8209451

Please sign in to comment.