Auto-update astropy-iers-data minimum version #12
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
# Regularly update the minimum version of astropy-iers-data in pyproject.toml, | |
# to ensure that if users update astropy, astropy-iers-data will also get | |
# updated to a recent version. | |
name: Auto-update astropy-iers-data minimum version | |
on: | |
schedule: | |
- cron: '0 0 2 * *' # Monthly | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
update-astropy-iers-data-pin: | |
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 astropy-iers-data minimum version | |
runs-on: ubuntu-latest | |
if: github.repository == 'astropy/astropy' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- name: Set up Python | |
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | |
with: | |
python-version: 3.x | |
- name: Install dependencies | |
run: pip install requests | |
- name: Run update script | |
run: python .github/workflows/update_astropy_iers_data_pin.py | |
- name: Commit changes | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add pyproject.toml | |
if ! git diff --cached --exit-code; then | |
git commit -m "Update minimum required version of astropy-iers-data" | |
fi | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5 | |
with: | |
branch: update-astropy-iers-data-pin | |
branch-suffix: timestamp | |
delete-branch: true | |
labels: no-changelog-entry-needed, utils.iers | |
title: Update minimum required version of astropy-iers-data | |
body: | | |
This is an automated update of the minimum version of astropy-iers-data package. | |
:pray: Please apply backport labels to any active backport branches for v6.0.x or later. :pray: | |
:warning: Please close and re-open this pull request to trigger the CI. :warning: |