Update Bundled Data #158
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: Update Bundled Data | |
on: | |
schedule: | |
- cron: '30 9 * * *' | |
workflow_dispatch: | |
jobs: | |
update-eop-data: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: julia-actions/setup-julia@v2 | |
with: | |
version: "1.10" | |
- uses: julia-actions/cache@v2 | |
- uses: actions/checkout@v4 | |
- name: Update Package Registry | |
run: julia -e 'using Pkg; Pkg.update();' | |
- name: Ensure dependencies are built | |
run: julia --project -e "using Pkg; Pkg.precompile(); using SatelliteDynamics; Pkg.instantiate();" | |
- name: Update package data | |
run: julia --project ./scripts/update_data.jl | |
- name: Commit and push changes | |
uses: EndBug/add-and-commit@v9 | |
with: | |
author_name: Github Worker | |
message: 'Commit from GitHub Actions - Daily Update of Bundled Data' | |
add: 'data/*' |