Skip to content
Discussion options

You must be logged in to vote

The problem is, that actions/checkout checked out the repo with the branch 438-generate-picture-from-puml.
Internally the action does a git checkout --branch {name} which then leads to the error you encountered.

You could add the following step before holowinski/plantuml-github-action@main, to checkout the repository to the right branch.

- run: git checkout -b ${{ env.PUBLISH_BRANCH }}

Or add the skip_checkout: true-option to the git-auto-commit step.

  - name: push diagrams
    uses: stefanzweifel/git-auto-commit-action@v4.16.0
    with:
      commit_message: auto-generate `**.svg` for `**.plantuml`
      branch: ${{ env.PUBLISH_BRANCH }}
      # file_pattern: '**.svg'
      push_options…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@stefanzweifel
Comment options

Answer selected by stefanzweifel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants