Daily Update #1432
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: Daily Update | |
on: | |
push: | |
schedule: | |
- cron: "0 0 * * *" | |
env: | |
USERNAME: "brettcannon" | |
BLOG_FEED: "https://snarky.ca/rss/" | |
TWITTER_USERNAME: "brettsky" | |
MASTODON_SERVER: "https://fosstodon.org" | |
MASTODON_ACCOUNT_ID: "108285802173994961" | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get source | |
uses: actions/checkout@v3 | |
- name: Get Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
cache: "pip" | |
- name: Install dependencies | |
run: python -m pip install -r requirements.txt | |
- name: Update README.md | |
# --twitter_username ${{ env.TWITTER_USERNAME }} --twitter_token ${{ secrets.TWITTER_BEARER_TOKEN }} | |
run: python free-labour.py --feed ${{ env.BLOG_FEED }} --username ${{ env.USERNAME }} --token ${{ secrets.GITHUB_TOKEN }} --mastodon_server ${{ env.MASTODON_SERVER }} --mastodon_account_id ${{ env.MASTODON_ACCOUNT_ID }} > README.md | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Update README.md | |
file_pattern: README.md |