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