Publish #2347
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: 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 }} |