-
-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (36 loc) · 975 Bytes
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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 }}