mirror of
https://github.com/andrewthetechie/py-healthchecks.io.git
synced 2026-04-27 09:15:39 +02:00
workflows
This commit is contained in:
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 }}
|
||||
|
||||
Reference in New Issue
Block a user