Skip to content

Update README.md

Update README.md #342

Workflow file for this run

name: Upstream checks
on:
pull_request:
schedule:
- cron: "0 6 * * *"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
# Concurrency group that uses the workflow name and PR number if available
# or commit SHA as a fallback. If a new build is triggered under that
# concurrency group while a previous build is running it will be canceled.
# Repeated pushes to a PR will cancel all previous builds, while multiple
# merges to main will not cancel.
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
check_pyproject_toml_changes:
permissions:
contents: read
issues: write
name: Report pyproject.toml changes
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: napari/napari
fetch-depth: 0
- name: Did pyproject.toml change since yesterday
run: |
changes="$(git diff $(git log -1 --before=@{last.day} --format=%H) pyproject.toml)"
echo "$changes"
if [[ -n "$changes" ]]; then
echo 'PYPROJECT_TOML_CHANGES<<EOF${{ github.run_id }}' >> $GITHUB_ENV
echo "$changes" >> $GITHUB_ENV
echo 'EOF${{ github.run_id }}' >> $GITHUB_ENV
echo "PYPROJECT_TOML_TODAY=$(date -I)" >> $GITHUB_ENV
fi
- name: Checkout packaging code
if: env.PYPROJECT_TOML_CHANGES && github.event_name == 'schedule'
uses: actions/checkout@v4
with:
repository: napari/packaging
- name: Create issue
if: env.PYPROJECT_TOML_CHANGES && github.event_name == 'schedule'
uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
filename: .github/PYPROJECT_TOML_UPDATED_TEMPLATE.md
update_existing: true