Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/WaylonWalker/hatch-action
Automatically version bump hatch projects. This is very much a personal project that just does what I need it to, if you like it great!, if you don't fork it and make it do what you want.
https://github.com/WaylonWalker/hatch-action
Last synced: 14 days ago
JSON representation
Automatically version bump hatch projects. This is very much a personal project that just does what I need it to, if you like it great!, if you don't fork it and make it do what you want.
- Host: GitHub
- URL: https://github.com/WaylonWalker/hatch-action
- Owner: WaylonWalker
- Created: 2022-09-01T13:44:48.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-04T15:53:05.000Z (over 1 year ago)
- Last Synced: 2024-09-19T08:02:05.102Z (about 2 months ago)
- Language: Python
- Homepage:
- Size: 42 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This action bumps [hatch](https://hatch.pypa.io/latest/version/) hatch
projects. This is pretty rigidly setup for my workflow, and is not likely to
work for everyone. If you want something different, fork it and make it work
for you.## Example usage
``` yaml
- uses: waylonwalker/hatch-version-action
```## Example project
I made an [example project](https://github.com/WaylonWalker/hatch-version-action-example/actions/workflows/main.yml) with `hatch new` and added this example workflow.
``` yaml
name: Use hatch-version-actionon:
push:
branches: [ "*" ]workflow_dispatch:
env:
HATCH_INDEX_USER: __token__
HATCH_INDEX_AUTH: ${{ secrets.pypi_token }}jobs:
build:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@v3
- uses: waylonwalker/hatch-action@v2
with:
before-command: "test-lint"
```## Example Runs
Here is what some runs using this action look like.
* [🟢 Example Good Run](https://github.com/WaylonWalker/hatch-version-action-example/actions/runs/2975837348)
* [🔴 Example flake8 Error](https://github.com/WaylonWalker/hatch-version-action-example/actions/runs/2975842403)
* [🔴 Example pytest failure](https://github.com/WaylonWalker/hatch-version-action-example/actions/runs/2975846813)
* [🔴 Example missing dependency](https://github.com/WaylonWalker/hatch-version-action-example/actions/runs/2975866133)## Publishing
You will need to get a token, and upload it to your projects secrets, and pass it in as the `HATCH_INDEX_AUTH` env variable.