-
-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (44 loc) · 1.63 KB
/
Copy pathgenerate_scripts.yml
File metadata and controls
57 lines (44 loc) · 1.63 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
name: Run Generate Scripts
on:
schedule:
- cron: '0 */1 * * *' # Runs every 1 hours
workflow_dispatch:
jobs:
run-generate-scripts:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set time zone
run: |
sudo timedatectl set-timezone America/New_York
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests beautifulsoup4 lxml pandas pyyaml pytz
- name: Run generate_safari_latest.py
run: python .github/actions/generate_safari_latest.py
- name: Run generate_firefox_latest.py
run: python .github/actions/generate_firefox_latest.py
- name: Run generate_edge_latest.py
run: python .github/actions/generate_edge_latest.py
- name: Run generate_chrome_latest.py
run: python .github/actions/generate_chrome_latest.py
- name: Run generate_readme.py
run: python .github/actions/generate_readme.py
- name: Run generate_rss_feed.py
run: python .github/actions/generate_rss_feed.py
- name: Commit changes
continue-on-error: true
env:
TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add .
git commit -m "Automated update by GitHub Actions" || echo "No changes to commit"
git push https://github-actions[bot]:$TOKEN@github.com/cocopuff2u/BOFA.git