1
0
mirror of https://github.com/nextcloud/docker.git synced 2024-06-26 09:09:01 +02:00
docker-nextcloud/.github/workflows/update-sh.yml
J0WI 3c7c42e604
Allow manual run
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2022-09-07 14:19:40 +00:00

30 lines
683 B
YAML

name: update.sh
on:
push:
branches:
- master
schedule:
- cron: '15 0 * * *'
workflow_dispatch:
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 -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 }}
force: true