mirror of
https://github.com/andrewthetechie/py-healthchecks.io.git
synced 2026-04-20 22:12:41 +02:00
workflows
This commit is contained in:
1
.github/workflows/constraints.txt
vendored
1
.github/workflows/constraints.txt
vendored
@@ -3,3 +3,4 @@ nox==2021.10.1
|
||||
nox-poetry==0.9.0
|
||||
poetry==1.1.12
|
||||
virtualenv==20.10.0
|
||||
poetry-dynamic-versioning==0.13.1
|
||||
|
||||
24
.github/workflows/pre-release.yml
vendored
24
.github/workflows/pre-release.yml
vendored
@@ -26,29 +26,9 @@ jobs:
|
||||
|
||||
- name: Install Poetry
|
||||
run: |
|
||||
pip install --constraint=.github/workflows/constraints.txt poetry
|
||||
pip install --constraint=.github/workflows/constraints.txt poetry poetry-dynamic-constraints
|
||||
poetry --version
|
||||
|
||||
- name: Check if there is a parent commit
|
||||
id: check-parent-commit
|
||||
run: |
|
||||
echo "::set-output name=sha::$(git rev-parse --verify --quiet HEAD^)"
|
||||
|
||||
- name: Detect and tag new version
|
||||
id: check-version
|
||||
if: steps.check-parent-commit.outputs.sha
|
||||
uses: salsify/action-detect-and-tag-new-version@v2.0.1
|
||||
with:
|
||||
version-command: |
|
||||
bash -o pipefail -c "poetry version | awk '{ print \$2 }'"
|
||||
|
||||
- name: Bump version for developmental release
|
||||
if: "! steps.check-version.outputs.tag"
|
||||
run: |
|
||||
poetry version patch &&
|
||||
version=$(poetry version | awk '{ print $2 }') &&
|
||||
poetry version $version.dev.$(date +%s)
|
||||
|
||||
- name: Build package
|
||||
run: |
|
||||
poetry build --ansi
|
||||
@@ -74,4 +54,4 @@ jobs:
|
||||
publish: ${{ steps.check-version.outputs.tag != '' }}
|
||||
tag: ${{ steps.check-version.outputs.tag }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
|
||||
12
README.rst
12
README.rst
@@ -7,14 +7,14 @@ Py Healthchecks.Io
|
||||
|
||||
|pre-commit| |Black|
|
||||
|
||||
.. |PyPI| image:: https://img.shields.io/pypi/v/py-healthchecks.io.svg
|
||||
:target: https://pypi.org/project/py-healthchecks.io/
|
||||
.. |PyPI| image:: https://img.shields.io/pypi/v/py-healthchecksio.svg
|
||||
:target: https://pypi.org/project/py-healthchecksio/
|
||||
:alt: PyPI
|
||||
.. |Status| image:: https://img.shields.io/pypi/status/py-healthchecks.io.svg
|
||||
:target: https://pypi.org/project/py-healthchecks.io/
|
||||
.. |Status| image:: https://img.shields.io/pypi/status/py-healthchecksio.svg
|
||||
:target: https://pypi.org/project/py-healthchecksio/
|
||||
:alt: Status
|
||||
.. |Python Version| image:: https://img.shields.io/pypi/pyversions/py-healthchecks.io
|
||||
:target: https://pypi.org/project/py-healthchecks.io
|
||||
.. |Python Version| image:: https://img.shields.io/pypi/pyversions/py-healthchecksio
|
||||
:target: https://pypi.org/project/py-healthchecksio
|
||||
:alt: Python Version
|
||||
.. |License| image:: https://img.shields.io/pypi/l/py-healthchecks.io
|
||||
:target: https://opensource.org/licenses/MIT
|
||||
|
||||
Reference in New Issue
Block a user