-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 1 KB
/
update-readme.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
name: Update README
on:
schedule:
- cron: '0 */12 * * *' # Run every hour
workflow_dispatch:
jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3 # Zaktualizowane do v3
- name: Set up Node.js
uses: actions/setup-node@v3 # Zaktualizowane do v3
with:
node-version: '20' # Ustawiona wersja Node.js na 20
- name: Install dependencies
run: npm install node-fetch@2
- name: Run update script
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: node update-readme.js
- name: Commit and push changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add README.md package.json # Dodanie zmodyfikowanych plików bez package-lock.json
git commit -m 'Update README with latest pull requests'
git push
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}