Skip to content

Commit

Permalink
Update CI files
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
pulpbot committed Nov 5, 2023
1 parent a6ebd0f commit 0202f87
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/template_gitref
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2021.08.26-249-gca8f021
2021.08.26-250-gf4315cf
5 changes: 0 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ on:
inputs:
release:
description: "Release tag (e.g. 3.2.1)"
required: true
before_script:
description: |
Bash code to run before bindings and docs are built. This should only be used when re-running
Expand Down Expand Up @@ -287,9 +286,5 @@ jobs:
echo "GH Issues $GH_ISSUES"
python .ci/scripts/update_github.py
- name: Tweet
continue-on-error: true
run: python .ci/scripts/tweet.py ${{ github.event.inputs.release }}

- name: Create release on GitHub
run: bash .github/workflows/scripts/create_release_from_tag.sh ${{ github.event.inputs.release }}
11 changes: 3 additions & 8 deletions .github/workflows/scripts/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import os
import textwrap
import requests
import subprocess

from git import Repo
from pathlib import Path
Expand Down Expand Up @@ -152,14 +153,8 @@ def main():
release_path = os.path.dirname(os.path.abspath(__file__))
plugin_path = release_path.split("/.github")[0]

version = None
with open(f"{plugin_path}/setup.py") as fp:
for line in fp.readlines():
if "version=" in line:
version = re.split("\"|'", line)[1]
if not version:
raise RuntimeError("Could not detect existing version ... aborting.")
release_version = version.replace(".dev", "")
output = subprocess.check_output(["bump2version", "--dry-run", "--list", "release"])
release_version = re.findall(r"\nnew_version=([0-9.]*)\n", output.decode())[0]

print(f"\n\nRepo path: {plugin_path}")
repo = Repo(plugin_path)
Expand Down

0 comments on commit 0202f87

Please sign in to comment.