forked from astropy/astropy
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (41 loc) · 1.48 KB
/
update_iers.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
45
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@v4
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!