summaryrefslogtreecommitdiffstats
path: root/.github/workflows/update-sh.yml
blob: 24551a231d5b0fd1ee8da4413794f36c9b5d401d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: update.sh

on:
  push:
    branches:
    - master
  schedule:
  - cron:  '15 0 * * *'

jobs:
  run_update_sh:
    name: Run update.sh script
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Run update.sh script
      run: ./update.sh
    - name: Commit files
      run: |
        git config --local user.email "workflow@github.com"
        git config --local user.name "GitHub Workflow"
        git add ./*
        git commit -m "Runs update.sh"
    - name: Push changes
      uses: ad-m/github-push-action@master
      with:
        github_token: ${{ secrets.GITHUB_TOKEN }}
        force: true