-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash.yml
More file actions
32 lines (26 loc) · 767 Bytes
/
Copy pathbash.yml
File metadata and controls
32 lines (26 loc) · 767 Bytes
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
name: Continuous Dependency Updating
on:
schedule:
- cron: '0 0 * * *' # Run daily at 00:00 UTC
workflow_dispatch: # Allows manual triggering of the workflow
jobs:
update_dependencies:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Update system packages
run: |
sudo apt-get update
sudo apt-get upgrade -y
- name: Run shell script
run: |
chmod +x my_script.sh
./my_script.sh
- name: Commit and push changes
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git commit -m "Update system packages via CDU" || exit 0
git push