From ddbc84bee4ac62a8f9b046b82e6694b4ffb9cab7 Mon Sep 17 00:00:00 2001 From: range3 Date: Wed, 18 Sep 2024 14:00:08 +0900 Subject: [PATCH] Fix build latex workflow --- .github/actions/latexmk/entrypoint.sh | 1 - .github/workflows/build-latex.yml | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/actions/latexmk/entrypoint.sh b/.github/actions/latexmk/entrypoint.sh index 05c05ec..aa34767 100755 --- a/.github/actions/latexmk/entrypoint.sh +++ b/.github/actions/latexmk/entrypoint.sh @@ -16,7 +16,6 @@ FILE_BASENAME=$(basename "${LATEX_FILE_NAME}" .tex) OUTPUT_PDF="${FILE_BASENAME}-${VERSION_NAME}.pdf" # Export environment variables for GitHub Actions to use in later steps -echo "LATEXMK_LATEX_FILE_NAME=${LATEX_FILE_NAME}" >> $GITHUB_ENV echo "LATEXMK_OUTPUT_PDF=${OUTPUT_PDF}" >> $GITHUB_ENV # Build the LaTeX document diff --git a/.github/workflows/build-latex.yml b/.github/workflows/build-latex.yml index 51a70a8..3d1de5c 100644 --- a/.github/workflows/build-latex.yml +++ b/.github/workflows/build-latex.yml @@ -18,11 +18,11 @@ jobs: - name: Build LaTeX and Set Output File Name uses: ./.github/actions/latexmk with: - latex_file_name: ${{ github.event.inputs.latex_file_name || 'main.tex' }} + latex_file_name: 'main.tex' - name: Create and Upload a Release Asset uses: softprops/action-gh-release@v2.0.8 with: - files: ./${{ env.OUTPUT_PDF }} + files: ./${{ env.LATEXMK_OUTPUT_PDF }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}