From 298e515a5120a365cba5f0db4b7e7cca7562ec31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Wed, 18 Oct 2023 11:04:38 +0200 Subject: [PATCH] fix environment variable --- .ci/deploy/deploy_message.py | 2 +- .gitea/workflows/build.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.ci/deploy/deploy_message.py b/.ci/deploy/deploy_message.py index 042cfcf..2bdabe6 100644 --- a/.ci/deploy/deploy_message.py +++ b/.ci/deploy/deploy_message.py @@ -14,6 +14,6 @@ def get_deploy_message(repo): "\n" \ "Build branch {branch} ({hexsha}) from {repo_name}" \ .format(old_msg=old_msg, - branch=os.environ['CI_COMMIT_REF_NAME'], + branch=os.environ['REF_NAME'], hexsha=get_latest_commit(repo).hexsha[0:7], repo_name='kesslermaximilian/LatexPackages') diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 94df5c8..c9e0a05 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -27,6 +27,8 @@ jobs: - name: Build packages run: | .ci/ci_build.sh # Note that this includes pushing to the build mirror + env: + REF_NAME: ${{ github.ref_name }} deploy-pages: runs-on: ubuntu-latest needs: build