Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AAriam committed Oct 24, 2023
1 parent eb6082d commit 1b7d105
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespaces = true
# ----------------------------------------- Project Metadata -------------------------------------
#
[project]
version = "0.0.0.dev138"
version = "0.0.0.dev139"
name = "RepoDynamics"
dependencies = [
"packaging >= 23.2, < 24",
Expand Down
6 changes: 4 additions & 2 deletions src/repodynamics/actions/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,11 +297,11 @@ def event_push_tag_modified(self):
return

def event_pull_request(self):
for job_id in ("package_build", "package_test_local", "package_lint", "website_build"):
self.set_job_run(job_id)
branch = self.resolve_branch(self.pull_head_ref_name)
if branch.type == BranchType.DEV and branch.number == 0:
return
for job_id in ("package_build", "package_test_local", "package_lint", "website_build"):
self.set_job_run(job_id)
self.git.checkout(branch=self.pull_base_ref_name)
latest_base_hash = self.git.commit_hash_normal()
base_ver, dist = self.get_latest_version()
Expand Down Expand Up @@ -416,6 +416,8 @@ def event_repository_created(self):
for changelog_data in metadata.get("changelog", {}).values():
path_changelog_file = Path(changelog_data["path"])
path_changelog_file.unlink(missing_ok=True)
with open(self.meta.input_path.dir_website / "announcement.html", "w") as f:
f.write("")
self.commit(message="init: Create repository from RepoDynamics PyPackIT template", amend=True, push=True)
self.add_summary(
name="Init",
Expand Down

0 comments on commit 1b7d105

Please sign in to comment.