2
0
Fork 0
mirror of https://github.com/friendica/docker synced 2024-11-14 01:23:41 +01:00
docker/.github/workflows/update-sh.yml
Philipp acf6c8ca6a
Update update-sh.yml
Fixed wrong branch for automatic push
2020-09-07 09:17:09 +02:00

30 lines
722 B
YAML

name: update.sh
on:
push:
branches:
- stable
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" || echo "Nothing to update"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
force: true
branch: 'stable'