error when files exist and action auto re-run #280
-
|
problem -- https://github.com/quantum-ods/qmlcourse/actions/runs/3864122481/jobs/6586729459 (more https://github.com/quantum-ods/qmlcourse/actions/workflows/cd-stage.yml) but when run with created some folder with files and after new updating another files (which are pushed) and run same workflow get so, how resolve this problem when files not be updating each times |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
The problem is, that You could add the following step before - run: git checkout -b ${{ env.PUBLISH_BRANCH }}Or add the - 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: --dry-run # '--force'
add_options: '-f'
+ skip_dirty_check : true |
Beta Was this translation helpful? Give feedback.
The problem is, that
actions/checkoutchecked out the repo with the branch438-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.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…