From 896956f6fade86672b84f60783cce28e5a358ace Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Wed, 18 Oct 2023 10:26:11 +0200 Subject: [PATCH] fix ref name context variable --- .ci/setup_build_repo_branch.sh | 2 +- .gitea/workflows/build.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.ci/setup_build_repo_branch.sh b/.ci/setup_build_repo_branch.sh index ff4824a..0801d95 100755 --- a/.ci/setup_build_repo_branch.sh +++ b/.ci/setup_build_repo_branch.sh @@ -3,7 +3,7 @@ set -e cd build/LatexPackagesBuild -REMOTE_BRANCH=$(git branch -a | sed -n '/remotes\/origin\/.*-build/p' | sed 's/remotes\/origin\///g' | sed 's/-build//g' | sed 's/[[:space:]]//g' | sed -n "/^${CI_COMMIT_REF_NAME}$/p") +REMOTE_BRANCH=$(git branch -a | sed -n '/remotes\/origin\/.*-build/p' | sed 's/remotes\/origin\///g' | sed 's/-build//g' | sed 's/[[:space:]]//g' | sed -n "/^${REF_NAME}$/p") echo ${REMOTE_BRANCH} diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 7972980..94df5c8 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -22,8 +22,8 @@ jobs: - name: Checkout correct branch in build repository run: | .ci/setup_build_repo_branch.sh - cd build/LatexPackagesBuild - git ls-remote --heads + env: + REF_NAME: ${{ github.ref_name }} - name: Build packages run: | .ci/ci_build.sh # Note that this includes pushing to the build mirror