Auto-update IERS tables #8
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: Auto-update IERS tables | |
on: | |
schedule: | |
- cron: '0 0 1 * *' | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
update-iers: | |
permissions: | |
contents: write # for peter-evans/create-pull-request to create branch | |
pull-requests: write # for peter-evans/create-pull-request to create a PR | |
name: Auto-update IERS tables | |
runs-on: ubuntu-latest | |
if: github.repository == 'astropy/astropy' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Download latest IERS files | |
run: ./update_builtin_iers.sh | |
working-directory: astropy/utils/iers/data | |
- name: Commit changes | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add astropy/utils/iers/data/Leap_Second.dat | |
git add astropy/utils/iers/data/eopc04.1962-now | |
if ! git diff --cached --exit-code; then | |
git commit -m "Update IERS Earth rotation and leap second tables" | |
fi | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
branch: update-iers | |
branch-suffix: timestamp | |
delete-branch: true | |
labels: no-changelog-entry-needed, utils.iers | |
title: Update IERS Earth rotation and leap second tables | |
body: | | |
This is an automated update of the IERS Earth rotation and leap second tables. | |
**Note to maintainers:** please label this to be backported to all current release branches! |