fix ref name context variable
Some checks failed
Build LaTeX packages / build (push) Failing after 25s
Build LaTeX packages / deploy-pages (push) Failing after 6s

This commit is contained in:
Maximilian Keßler 2023-10-18 10:26:11 +02:00
parent 77140598bf
commit 896956f6fa
Signed by: max
GPG key ID: BCC5A619923C0BA5
2 changed files with 3 additions and 3 deletions

View file

@ -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}

View file

@ -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