0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2024-09-30 08:22:37 +02:00
nextcloud-docker/.github/workflows/update-sh.yml
pierreozoux 1eb77283c1 Run update.sh on PR and on cron.
Signed-off-by: pierreozoux <pierre@ozoux.net>
2020-08-28 15:18:27 +02:00

28 lines
635 B
YAML

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