GradienceCommunity/.github/workflows/update.yml
0xMRTT d8cce8aec4
fix: add schedule
Signed-off-by: 0xMRTT <0xMRTT@tuta.io>
2022-10-15 19:28:47 +02:00

33 lines
902 B
YAML

name: Update from gradience-presets org
on:
push:
branches: [ "next" ]
workflow_dispatch:
schedule:
- cron: '0 * * * *'
jobs:
update:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# 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
- uses: actions/checkout@v3
# Runs a single command using the runners shell
- name: Run a one-line script
run: ./scripts/update.sh
- name: Commmit
run: |
git config user.name "GradienceBot"
git config user.email "AdwCustomizerTeam@proton.me"
git add .
# added | true so, the worklow will not fail if there is nothing to committ
git commit -m "ci: update presets for their repo" | true