Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/galvinpython/youtube-readme
Show your latest video uploads in your README!
https://github.com/galvinpython/youtube-readme
Last synced: about 1 month ago
JSON representation
Show your latest video uploads in your README!
- Host: GitHub
- URL: https://github.com/galvinpython/youtube-readme
- Owner: GalvinPython
- License: mit
- Created: 2024-06-29T15:19:36.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-06-30T13:44:42.000Z (6 months ago)
- Last Synced: 2024-07-04T03:33:29.098Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 676 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# YouTube Readme Updater
Updates your README file to show your latest video uploads on YouTube!# Example Usage
> [!IMPORTANT]
> This action uses NodeJS 20To use, simply create a file called `.github/workflows/main.yml` in your target repository. `main.yml` can be anything as long as it's a `.yml` file
```yml
name: Update README with latest YouTube videoson:
schedule:
- cron: '0 * * * *' # Runs every hourjobs:
update-readme:
runs-on: ubuntu-lateststeps:
- name: Checkout repository
uses: actions/checkout@v2- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'- name: Update README
uses: GalvinPython/[email protected]
with:
youtube_channel_id: '' # Replace with your channel ID
readme_file_path: 'README.md'
- name: Configure Git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'- name: Commit changes
run: |
git add README.md
git commit -m "Update README with latest YouTube videos" || echo "No changes to commit"- name: Push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: git push
```# API
You can find the server for the API [here](https://github.com/GalvinPython/latest-uploads-api)# Future Improvements
* Set a value between 1 and 5 videos
* Choose either shorts, streams or videos (or all)
* Format better
* Video statistics# Changelog
## V1.0
* Released action