Generate RSS #4491
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: Generate RSS | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
schedule: | |
- cron: '11 * * * *' | |
jobs: | |
scheduled: | |
runs-on: ubuntu-latest | |
permissions: | |
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository. | |
contents: write | |
steps: | |
- name: checkout repo content | |
uses: actions/checkout@v4 # checkout the repository content to github runner. | |
- name: setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 #install the python needed | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.txt | |
python -m playwright install | |
- name: execute py script | |
run: | | |
python bring_back_reader.py | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add . | |
git commit -m "Latest Google Chrome Developer Blog RSS" | |
git push |