Starlink Tracking Refresh #1274
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: Starlink Tracking Refresh | |
on: | |
schedule: | |
# Daily at 05:38 | |
- cron: '38 5 * * *' | |
workflow_dispatch: | |
inputs: | |
ignore: | |
description: nothing | |
required: false | |
default: ignore | |
jobs: | |
refresh: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Install libwww-perl | |
run: sudo apt-get update && sudo apt-get install -y libwww-perl | |
- name: Get Tracking Data | |
env: | |
SPACE_TRACK_ID: ${{ secrets.SPACE_TRACK_ID }} | |
SPACE_TRACK_PW: ${{ secrets.SPACE_TRACK_PW }} | |
run: cd starlink && perl starlinkupdate.pl | |
- name: Commit changes | |
run: | | |
git config user.name "github-actions" && git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git add starlink/starlink.js && git commit -m "Update starlink tracking data." && git push |