Skip to content

Update release message #48

Update release message

Update release message #48

Workflow file for this run

name: Download and release devstats data bundle
on:
push:
schedule:
- cron: "0 1 * * 0" # 01:00 on Sundays, https://crontab.guru/#0_1_*_*_0
workflow_dispatch:
permissions:
contents: write # to make release
jobs:
download-1:
runs-on: ubuntu-latest
steps:
- uses: scientific-python/devstats-query-action@main
with:
repos: |
- numpy/numpy
token: ${{ secrets.GRAPHQL_TOKEN }}
artifact-name: devstats-scientific-python-1
timezone: US/Pacific
download-2:
runs-on: ubuntu-latest
steps:
- uses: scientific-python/devstats-query-action@main
with:
repos: |
- scipy/scipy
token: ${{ secrets.GRAPHQL_TOKEN }}
artifact-name: devstats-scientific-python-2
timezone: US/Pacific
download-3:
runs-on: ubuntu-latest
steps:
- uses: scientific-python/devstats-query-action@main
with:
repos: |
- pandas-dev/pandas
token: ${{ secrets.GRAPHQL_TOKEN }}
artifact-name: devstats-scientific-python-3
timezone: US/Pacific
download-4:
runs-on: ubuntu-latest
steps:
- uses: scientific-python/devstats-query-action@main
with:
repos: |
- scikit-learn/scikit-learn
token: ${{ secrets.GRAPHQL_TOKEN }}
artifact-name: devstats-scientific-python-4
timezone: US/Pacific
download-5:
runs-on: ubuntu-latest
steps:
- uses: scientific-python/devstats-query-action@main
with:
repos: |
- matplotlib/matplotlib
token: ${{ secrets.GRAPHQL_TOKEN }}
artifact-name: devstats-scientific-python-5
timezone: US/Pacific
download-6:
runs-on: ubuntu-latest
steps:
- uses: scientific-python/devstats-query-action@main
with:
repos: |
- scikit-image/scikit-image
- networkx/networkx
token: ${{ secrets.GRAPHQL_TOKEN }}
artifact-name: devstats-scientific-python-6
timezone: US/Pacific
download-7:
runs-on: ubuntu-latest
steps:
- uses: scientific-python/devstats-query-action@main
with:
repos: |
- astropy/astropy
- sunpy/sunpy
token: ${{ secrets.GRAPHQL_TOKEN }}
artifact-name: devstats-scientific-python-7
timezone: US/Pacific
release:
needs:
- download-1
- download-2
- download-3
- download-4
- download-5
- download-6
- download-7
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
pattern: devstats-scientific-python-*
merge-multiple: true
path: .
- name: Set variables
shell: bash
run: |
ISODATE=$(TZ=US/Pacific date +"%Y-%m-%d")
echo "ISODATE=$ISODATE" >> $GITHUB_ENV
echo "QUERY_FILENAME=$ISODATE-queries.tar.xz" >> $GITHUB_ENV
- uses: actions/checkout@v4
with:
path: devstats-data
- name: Push date as tag
shell: bash
run: >-
(cd devstats-data &&
git config user.name github-actions &&
git config user.email github-actions@github.com &&
git tag -a $ISODATE -m "Release $ISODATE" &&
git push origin $ISODATE)
- uses: actions/checkout@v4
with:
repository: scientific-python/devstats
path: devstats
- name: Bundle queries
shell: bash
run: |
tar cfJ $QUERY_FILENAME -C ./devstats/devstats/queries .
- name: Release
uses: softprops/action-gh-release@v2
with:
body: |
This is the ${{ env.ISODATE }} snapshot of developer statistics for [Scientific Python](https://scientific-python.org) [core projects](https://scientific-python.org/specs/core-projects/).
You can generate a report from this data using [devstats](https://github.com/scientific-python/devstats).
Reports for some key ecosystem packages are available at https://devstats.scientific-python.org
`${{ env.QUERY_FILENAME }}` contains the queries used for this release.
tag_name: ${{ env.ISODATE }}
files: |
*.xz
- name: Rebuild devstats.scientific-python.org
shell: bash
env:
NETLIFY_TRIGGER_URL: ${{ secrets.NETLIFY_TRIGGER_URL }}
run: |
curl -X POST -d {} "$NETLIFY_TRIGGER_URL"