From: J0WI Date: Mon, 18 Sep 2023 21:08:41 +0000 (+0000) Subject: Add update cronjob (see #219) (#221) X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=2e9d73dbbb2605418730191f024cb836589d26ca;p=roundcube-roundcubemail-docker.git Add update cronjob (see #219) (#221) --- diff --git a/.github/workflows/update-sh.yml b/.github/workflows/update-sh.yml new file mode 100644 index 0000000..993edfa --- /dev/null +++ b/.github/workflows/update-sh.yml @@ -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 "workflow@github.com" + 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 }}