Skip to content

Commit ca5a109

Browse files
authored
Fix repository display & release job (#493)
* Fix release * Fix repository display & release job * prepare 1.5.1 * run black --------- Co-authored-by: Nicolas Vuillamy <[email protected]>
1 parent 59da19d commit ca5a109

File tree

6 files changed

+11
-4
lines changed

6 files changed

+11
-4
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
build_push_docker:
3434
name: Build & Push docker image
3535
runs-on: ubuntu-latest
36+
needs: publish
3637
permissions:
3738
packages: write
3839
steps:

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
88

99
- Add your updates here :)
1010

11+
## [1.5.1] 2023-12-31
12+
13+
- Fix repository display & release job
14+
1115
## [1.5.0] 2023-12-29
1216

1317
- Enhance display of repositories in markdown

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ jobs:
323323

324324
# Collect data & generate markdown
325325
- name: GitHub Dependents Info
326-
uses: nvuillam/[email protected].0 # If you trust me enough you can replace version by "main" :)
326+
uses: nvuillam/[email protected].1 # If you trust me enough you can replace version by "main" :)
327327
# See documentation for variables details: https://github.com/nvuillam/github-dependents-info?tab=readme-ov-file#%EF%B8%8F-usage
328328
with:
329329
repo: ${{ github.repository }}

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ inputs:
2828

2929
runs:
3030
using: "docker"
31-
image: "docker://nvuillam/github-dependents-info:v1.5.0"
31+
image: "docker://nvuillam/github-dependents-info:v1.5.1"
3232
args:
3333
- --repo
3434
- ${{ inputs.repo }}

github_dependents_info/gh_dependents_info.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,9 @@ def build_repo_md_line(self, md_lines, repo1):
399399
image_md = f'<img class="avatar mr-2" src="{img}" width="20" height="20" alt=""> '
400400
if "owner" in repo1 and "repo_name" in repo1:
401401
owner_md = "[" + repo1["owner"] + "](https://github.com/" + repo1["owner"] + ")"
402-
repo_md = "[" + repo1["owner"] + "](https://github.com/" + repo1["owner"] + "/" + repo1["repo_name"] + ")"
402+
repo_md = (
403+
"[" + repo1["repo_name"] + "](https://github.com/" + repo1["owner"] + "/" + repo1["repo_name"] + ")"
404+
)
403405
md_lines += [f"|{image_md} &nbsp; {owner_md} / {repo_md} | {repo_stars} |"]
404406
else:
405407
md_lines += [f"|{image_md} &nbsp; [{repo_label}](https://github.com/{repo_label}) | {repo_stars} |"]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"
55

66
[tool.poetry]
77
name = "github-dependents-info"
8-
version = "1.5.0"
8+
version = "1.5.1"
99
description = "Collect information about dependencies between a github repo and other repositories. Results available in JSON, markdown and badges."
1010
readme = "README.md"
1111
authors = ["nvuillam <[email protected]>"]

0 commit comments

Comments
 (0)