friendica-docker/.github/workflows/update-sh.yml

30 wiersze
722 B
YAML

2020-08-18 20:38:18 +00:00
name: update.sh
on:
2020-08-30 20:26:18 +00:00
push:
branches:
- stable
schedule:
- cron: '15 0 * * *'
2020-08-18 20:38:18 +00:00
jobs:
2020-08-30 20:26:18 +00:00
run_update_sh:
name: Run update.sh script
2020-08-18 20:38:18 +00:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
2020-08-30 20:26:18 +00:00
- name: Run update.sh script
run: ./update.sh
- name: Commit files
2020-08-18 20:38:18 +00:00
run: |
2020-08-30 20:26:18 +00:00
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'