Daily APOD #738
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 APOD | |
on: | |
schedule: | |
# Run daily at 12:00 | |
- cron: '0 12 * * *' | |
workflow_dispatch: | |
# Allow to run the action manually | |
jobs: | |
andromeda-images: | |
runs-on: ubuntu-latest | |
env: | |
MASTODON_ANDROMEDAFEED_TOKEN: ${{ secrets.MASTODON_ANDROMEDAFEED_TOKEN }} | |
NASA_APOD_API_KEY: ${{ secrets.NASA_APOD_API_KEY }} | |
TW_ANDROMEDAFEED_ACCESS_TOKEN: ${{ secrets.TW_ANDROMEDAFEED_ACCESS_TOKEN }} | |
TW_ANDROMEDAFEED_ACCESS_TOKEN_SECRET: ${{ secrets.TW_ANDROMEDAFEED_ACCESS_TOKEN_SECRET }} | |
TW_ANDROMEDAFEED_API_KEY: ${{ secrets.TW_ANDROMEDAFEED_API_KEY }} | |
TW_ANDROMEDAFEED_API_SECRET_KEY: ${{ secrets.TW_ANDROMEDAFEED_API_SECRET_KEY }} | |
BSKY_HANDLE: ${{ secrets.BSKY_HANDLE }} | |
BSKY_PASSWORD: ${{ secrets.BSKY_PASSWORD }} | |
steps: | |
- name: Checkout Andromeda Feed | |
uses: actions/checkout@v4 | |
- name: Install Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.3.1' | |
bundler-cache: true | |
- name: Check APOD | |
run: bundle exec rake andromeda:update_apod |