Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
42 lines (33 loc) · 1.18 KB

File metadata and controls

42 lines (33 loc) · 1.18 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
# This workflow automatically updates the profile README. It runs the update_readme.py script once per day. That script builds a new README file which includes some recent posts from freeCodeCamp.org
name: Update profile README
on:
schedule:
- cron: '0 0 * * *' # Runs every day at midnight UTC
workflow_dispatch: # Allows manual triggering of the workflow
permissions:
contents: write # Ensure the GITHUB_TOKEN has write permissions
jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- 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 feedparser
- name: Run update script
run: python update_readme.py
- name: Commit and push changes
run: |
git config --global user.name 'new2code'
git config --global user.email 'docs-learner-profile@github.com'
git add README.md
git commit -m 'Update README with latest posts'
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.