yegor256 / latexmk-action

GitHub action for building LaTeX documents via latexmk
MIT License
16 stars 3 forks source link

`tlmgr` error as wrong turn is taken in `entry.sh` #14

Closed michaelcadilhac closed 10 months ago

michaelcadilhac commented 1 year ago

entry.sh takes the [[ "${INPUT_PACKAGES}" ]] branch when no packages are asked for:

Run yegor256/latexmk-action@0.8.0
/usr/bin/docker run --name bedb44097556853054cbab937cb83d77f516c_3ec1e1 --label 5bedb4 --workdir /github/workspace --rm -e "INPUT_PATH" -e "INPUT_CMD" -e "INPUT_OPTS" -e "INPUT_PACKAGES" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_ENVIRONMENT" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/dotdepth/dotdepth":"/github/workspace" 5bedb4:4097556853054cbab937cb83d77f516c
+ set -e
+ cd /github/workspace
+ cd .
+ [[ -n   ]]
+ tlmgr --verify-repo=none update --self
tlmgr: package repository https://ctan.mirrors.hoobly.com/systems/texlive/tlnet (not verified: gpg unavailable)
tlmgr: saving backups to /usr/local/texlive/2023/tlpkg/backups
tlmgr: no self-updates for tlmgr available
+ tlmgr --verify-repo=none update
tlmgr update: specify --list, --all, --self, or a list of package names.
tlmgr: An error has occurred. See above messages. Exiting.

I suspect this is due to its default value as ' ':

https://github.com/yegor256/latexmk-action/blob/3a7cee7bd188db124926d191117f73d370a010f5/action.yml#L47C5-L47C5

For reference, here's the workflow:

name: Build LaTeX document
on: [push]
jobs:
  build_latex:
    runs-on: ubuntu-latest
    steps:
      - name: Set up Git repository
        uses: actions/checkout@v3
      - name: Compile LaTeX document
        uses: yegor256/latexmk-action@0.8.0
      - name: Upload PDF file
        uses: actions/upload-artifact@v3
        with:
          name: PDF
          path: _build/main.pdf
yegor256 commented 1 year ago

@rultor release, tag is 0.8.1

rultor commented 1 year ago

@rultor release, tag is 0.8.1

@yegor256 OK, I will release it now. Please check the progress here

rultor commented 1 year ago

@rultor release, tag is 0.8.1

@michaelcadilhac @yegor256 Oops, I failed. You can see the full log here (spent 13s)

+ set -e
+ set -o pipefail
++ dirname ./run.sh
+ cd .
+ echo 1100499
+ echo '1.75.1 50eb0c708'
1.75.1 50eb0c708
+ date
Sun 20 Aug 2023 06:47:48 AM CEST
+ uptime
 06:47:48 up 269 days, 11:25,  0 users,  load average: 0.08, 0.04, 0.01
+ cat
com.rultor.spi.Profile: There is no 'release' section in .rultor.yml for branch master in repo yegor256/latexmk-action
    at com.rultor.agents.req.StartsRequest.docker(StartsRequest.java:350)
    at com.rultor.agents.req.StartsRequest.vars(StartsRequest.java:255)
    at com.rultor.agents.req.StartsRequest.script(StartsRequest.java:148)
    at com.rultor.agents.req.StartsRequest.process(StartsRequest.java:109)
    at com.rultor.agents.AbstractAgent.execute(AbstractAgent.java:75)
    at com.rultor.spi.Agent.execute(Agent.java:84)
    at com.rultor.agents.VerboseAgent.execute(VerboseAgent.java:62)
    at com.rultor.Routine.process(Routine.java:202)
    at com.rultor.Routine.unsafe_aroundBody0(Routine.java:180)
    at com.rultor.Routine.run(Routine.java:1)
    at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:179)
    at com.jcabi.aspects.aj.MethodInterrupter.wrap(MethodInterrupter.java:108)
    at com.rultor.Routine.unsafe(Routine.java:175)
    at com.rultor.Routine.run(Routine.java:142)
    at com.jcabi.log.VerboseRunnable.run(VerboseRunnable.java:190)
    at com.jcabi.aspects.aj.MethodScheduler.lambda./run.sh(MethodScheduler.java:194)
    at java.base/java.util.concurrent.Executors.call(Executors.java:539)
    at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
    at java.base/java.util.concurrent.ScheduledThreadPoolExecutor.run(ScheduledThreadPoolExecutor.java:305)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor.run(ThreadPoolExecutor.java:635)
    at com.jcabi.log.VerboseThreads.run(VerboseThreads.java:222)
    at java.base/java.lang.Thread.run(Thread.java:833)

+ exit -1
'cid' file is absent, most probably the Docker container wasn't started correctly
yegor256 commented 1 year ago

@rultor release, tag is 0.8.1

rultor commented 1 year ago

@rultor release, tag is 0.8.1

@yegor256 OK, I will release it now. Please check the progress here

rultor commented 1 year ago

@rultor release, tag is 0.8.1

@yegor256 Done! FYI, the full log is here (took me 1min)

yegor256 commented 1 year ago

@michaelcadilhac try version 0.8.1, should be working fine