-
Notifications
You must be signed in to change notification settings - Fork 126
34 lines (31 loc) · 814 Bytes
/
update-sh.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: update.sh
permissions:
# Git push permissions are needed
contents: write
on:
push:
branches:
- master
schedule:
- cron: '11 0 * * *'
workflow_dispatch:
jobs:
run_update_sh:
name: Run update.sh script
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.WOKFLOW_TOKEN }}
- name: Run update.sh script
run: ./update.sh
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Workflow"
git add -A
git commit -m "Update roundcube version (via update.sh)" || echo "Nothing to update"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.WOKFLOW_TOKEN }}