-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* move to trunk * version retrieve change * vbump and reverted some changes
- Loading branch information
Showing
7 changed files
with
103 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# check-new-tag.yml | ||
|
||
name: Check for new tags | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- pre/* | ||
- post/* | ||
|
||
jobs: | ||
check-tag: | ||
permissions: | ||
contents: write | ||
|
||
name: check for new tags | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: check for new version | ||
id: check-tag | ||
uses: biocatchltd/gh-actions-is-new-version@main | ||
|
||
- name: release a new version | ||
if: steps.check-tag.outputs.is-new == 'true' | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
body: ${{ steps.check-tag.outputs.release-notes }} | ||
tag_name: ${{ steps.check-tag.outputs.found-version }} | ||
target_commitish: ${{ github.sha }} | ||
prerelease: ${{ steps.check-tag.outputs.is-prerelease }} | ||
token: ${{ secrets.BC_AUTOMATIONS_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# label-bump-prs.yml | ||
name: Handle VLock PRs | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened, edited, synchronize] | ||
branches: | ||
- master | ||
|
||
jobs: | ||
label-vlock-prs: | ||
name: Handle Version Lock PRs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: check for new version | ||
id: check-tag | ||
uses: biocatchltd/gh-actions-is-new-version@main | ||
|
||
- name: label prs | ||
if: steps.check-tag.outputs.is-new == 'true' | ||
uses: actions-ecosystem/action-add-labels@v1 | ||
with: | ||
labels: version-lock | ||
|
||
- name: check that vlock prs are good to release | ||
if: steps.check-tag.outputs.is-new == 'true' | ||
run: | | ||
pip install --upgrade pip setuptools | ||
pip install poetry==1.7.1 | ||
sh scripts/check-version.sh | ||
- name: check no other version locks | ||
id: check-vlock | ||
if: steps.check-tag.outputs.is-new != 'true' | ||
uses: juliangruber/find-pull-request-action@v1 | ||
with: | ||
labels: version-lock | ||
base: master | ||
|
||
- name: block if vlock in progress | ||
if: steps.check-tag.outputs.is-new != 'true' | ||
uses: biocatchltd/gh-actions-block-with-comment@main | ||
with: | ||
fail-message: | | ||
Version lock in progress. Please wait for it to close before merging (#${{steps.check-vlock.outputs.number}}). | ||
comment_tag: version-lock | ||
test: ${{steps.check-vlock.outputs.state != 'open'}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/sh | ||
# checks that a version is ready to be released | ||
set -e | ||
|
||
if ls newsfragments/*.md 2> /dev/null; then | ||
echo "Unbuilt newsfragments exist, exiting" && exit 1 | ||
fi | ||
|
||
CL_VERSION=$(awk '/^## \[(.+)\]|[0-9.]+/ {print gensub(/(\[(.+)\]|([0-9.]+)).*$/, "\\2\\3", "g", $2); exit}' CHANGELOG.md) | ||
if [ -z "$CL_VERSION" ]; then | ||
echo "Could not find version in CHANGELOG.md" && exit 1 | ||
fi | ||
|
||
TOML_VERSION=$(poetry version | cut -d' ' -f2) | ||
|
||
if [ "$CL_VERSION" != "$TOML_VERSION" ]; then | ||
echo "Version mismatch between CHANGELOG.md and pyproject.toml ($CL_VERSION vs $TOML_VERSION)" && exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.8.7" | ||
__version__ = "" |