From 39e56fc0303ab28532173f5abf016ba4c8fe5059 Mon Sep 17 00:00:00 2001 From: Petro Kurbatskyi Date: Mon, 7 Nov 2022 11:33:48 +0100 Subject: [PATCH] IBX-4145: Fix deprecation warnings due to set-output --- Dockerfile | 2 +- action.yml | 2 +- main.py | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 628b946..a2ffe35 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ ADD . /app WORKDIR /app # We are installing a dependency here directly into our app source dir -RUN pip install --target=/app pygithub==1.54.1 jira +RUN pip install --target=/app pygithub==1.54.1 jira github-action-utils==1.1.0 # A distroless container image with Python and some basics like SSL certificates # https://github.com/GoogleContainerTools/distroless diff --git a/action.yml b/action.yml index 459ff39..3040c45 100644 --- a/action.yml +++ b/action.yml @@ -18,4 +18,4 @@ outputs: description: "Changelog output" runs: using: "docker" - image: "docker://ghcr.io/ibexa/changelog-generator-action:v2.0.2" + image: "docker://ghcr.io/ibexa/changelog-generator-action:v2.0.3" diff --git a/main.py b/main.py index 2945aa9..9965c84 100644 --- a/main.py +++ b/main.py @@ -4,6 +4,7 @@ from github import Github, UnknownObjectException from jira import JIRA, JIRAError +from github_action_utils import set_output JIRA_SERVER = "https://issues.ibexa.co" JIRA_PREFIX = f"{JIRA_SERVER}/browse/" @@ -157,7 +158,7 @@ def main(): if bare_output: print(messages) else: - print(f"::set-output name=changelog::{prepare_output(messages)}") + set_output("changelog", prepare_output(messages)) if __name__ == "__main__":