Skip to content

Commit

Permalink
Add update cronjob (see roundcube#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
J0WI committed Jul 8, 2023
1 parent 913cd6f commit 1665f4e
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/update-sh.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: update.sh

on:
push:
branches:
- master
schedule:
- cron: '11 0 * * *'
workflow_dispatch:

jobs:
run_update_sh:
name: Run update.sh script
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run update.sh script
run: ./update.sh
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Workflow"
git add -A
git commit -m "Runs update.sh" || echo "Nothing to update"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1665f4e

Please sign in to comment.