-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.15 KB
/
saveTheAddresses.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
37
38
39
40
41
42
43
44
45
name: Save The Address
on:
schedule:
- cron: '5,10,15 * * * *' # Runs daily at midnight UTC
workflow_dispatch: # Allows for manual trigger
inputs:
reason:
description: 'Motivo esecuzione del flusso di lavoro'
required: true
default: 'Esecuzione manuale'
jobs:
run-script:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Imposta Python
uses: actions/setup-python@v4
with:
python-version: '3.x' # Specifica la versione di Python
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests
- name: Esegui script Python
run: python address.py
- name: Configura Git
run: |
git config --local user.name "GitHub Action"
git config --local user.email "[email protected]"
- name: Aggiungi e committa pierce_addresses.txt
run: | # git push -f origin main
git add pierce_addresses.txt
git commit -m "Aggiornato pierce_addresses.txt"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}