2
0
Fork 0
mirror of https://github.com/friendica/docker synced 2024-05-26 23:56:57 +02:00
docker/.github/workflows/update-sh.yml

30 lines
722 B
YAML
Raw Permalink Normal View History

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