-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (29 loc) · 873 Bytes
/
main.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
35
36
name: Update Cache / Overfunded
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
run_script:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run Python script
run: |
pip3 install python-monerorpc
python3 get_overfunded.py # Replace with the name of your Python script
- name: Add changes
run: |
git add .
git rm *log -f
- name: Commit changes
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "codeberg"
git commit -m "Update files"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}