Update README #84
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |