Skip to content

Publish

Publish #2270

Workflow file for this run

name: Publish
on:
schedule:
- cron: "0 */4 * * *" # See https://crontab.guru/
push:
branches:
- master
permissions:
contents: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: DEBUG
run: echo "::debug::Ref = ${{github.ref}}"
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- name: Run the explorer
env:
NASA_API_KEY: ${{ secrets.NASA_API_KEY }}
run: |
pip3 install cygx1
cygx1 explorer launch README.md
- name: Commit changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "Todd"
git add -A
git commit -m "🐺 Add a new fact about our Universe"
- name: GitHub Push
uses: ad-m/[email protected]
with:
directory: "."
github_token: ${{ secrets.GITHUB_TOKEN }}