Skip to content

Commit

Permalink
CI: Create workflow to automatically update Versioneer (#2248)
Browse files Browse the repository at this point in the history
* CI: Create workflow to automatically update Versioneer

Runs on manual dispatch, if setup.cfg or the workflow is changed and once a month

* versioneer CI: Point as base branch to main

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>

* versioneer CI: Update used actions

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
  • Loading branch information
EwoutH and martinfleis committed Nov 3, 2022
1 parent ff23d16 commit 1623efc
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/versioneer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# See https://github.com/python-versioneer/python-versioneer
name: "Update Versioneer"
on:
workflow_dispatch:
schedule:
- cron: '0 6 1 * *' # 1st day of each month at 06:00 UTC
push:
paths:
- 'setup.cfg'
- '.github/workflows/versioneer.yml'

jobs:
versioneer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- run: pip install versioneer
- run: versioneer install
- uses: actions/upload-artifact@v3
with:
path: versioneer.py
- uses: peter-evans/create-pull-request@v4
with:
title: "Update Versioneer"
branch: update-versioneer
base: main
commit-message: "[Bot] Update Versioneer"

0 comments on commit 1623efc

Please sign in to comment.