From 5a5f1377d735f81ecf7811b178b4d244661cbd19 Mon Sep 17 00:00:00 2001 From: Preslav Date: Mon, 21 Oct 2024 16:06:05 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20GH=20action.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Preslav --- .github/env | 1 + .github/workflows/code-gen.yaml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .github/env diff --git a/.github/env b/.github/env new file mode 100644 index 0000000..e6a968b --- /dev/null +++ b/.github/env @@ -0,0 +1 @@ +golang-version=1.23.0 diff --git a/.github/workflows/code-gen.yaml b/.github/workflows/code-gen.yaml index 652d8fe..86ca9a9 100644 --- a/.github/workflows/code-gen.yaml +++ b/.github/workflows/code-gen.yaml @@ -37,7 +37,8 @@ jobs: id: git-diff run: | git diff --exit-code . - echo "GIT_DIFF=$?" >> $GITHUB_OUTPUT + EXIT_CODE=$(echo $?) + echo "GIT_DIFF=${EXIT_CODE}" >> $GITHUB_OUTPUT - name: Create PR if: steps.git-diff.outputs.GIT_DIFF == '1' id: cpr