Skip to content

support: no commit even when the static files are found #1130

@djs0109

Description

@djs0109

Checklist

  • I am using the latest version of this action.
  • I have read the latest README and followed the instructions.
  • I have read the latest GitHub Actions official documentation and learned the basic spec and concepts.

Describe your question

Hi!
I have setup a github workflow to run unittest and then generate coverage report.
The report is successfully generated in the runner under /home/runner/work/FiLiP/FiLiP/coverage_html_report
However, the action says nothing to commit, working tree clean as you can see in the action logs below.

Do you have an idea, how can I resolve this?

Relevant links

Public repository: https://github.com/RWTH-EBC/FiLiP/
YAML config: https://github.com/RWTH-EBC/FiLiP/blob/master/.github/workflows/unittest.yml
YAML workflow: https://github.com/RWTH-EBC/FiLiP/actions/runs/16475675639/job/46576510751

Relevant log output

Logs for validating the report generation


1s
Run coverage html -d coverage_html_report
  coverage html -d coverage_html_report
  shell: /usr/bin/bash -e {0}
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.10.18/x64
    PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.10.18/x64/lib/pkgconfig
    Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.18/x64
    Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.18/x64
    Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.18/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.18/x64/lib
  
Wrote HTML report to coverage_html_report/index.html
1s
Run coverage-badge -o coverage_html_report/badge.svg
  coverage-badge -o coverage_html_report/badge.svg
  shell: /usr/bin/bash -e {0}
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.10.18/x64
    PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.10.18/x64/lib/pkgconfig
    Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.18/x64
    Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.18/x64
    Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.18/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.18/x64/lib
Saved badge to /home/runner/work/FiLiP/FiLiP/coverage_html_report/badge.svg

Logs of actions-gh-pages@v4

Run peaceiris/actions-gh-pages@v4
[INFO] Usage https://github.com/peaceiris/actions-gh-pages#readme
Dump inputs
Setup auth token
Prepare publishing assets
  [INFO] ForceOrphan: false
  /usr/bin/git clone --depth=1 --single-branch --branch gh-pages ***github.com/RWTH-EBC/FiLiP.git /home/runner/actions_github_pages_1753286860786
  Cloning into '/home/runner/actions_github_pages_1753286860786'...
  [INFO] Keep existing files
  [INFO] chdir /home/runner/actions_github_pages_1753286860786
  [INFO] prepare publishing assets
  [INFO] copy /home/runner/work/FiLiP/FiLiP/coverage_html_report to /home/runner/actions_github_pages_1753286860786/docs/master/coverage
  [INFO] delete excluded assets
  rm: no paths given
Setup Git config
  /usr/bin/git remote rm origin
  /usr/bin/git remote add origin ***github.com/RWTH-EBC/FiLiP.git
  /usr/bin/git add --all
  /usr/bin/git config user.name github-actions[bot]
  /usr/bin/git config user.email github-actions[bot]@users.noreply.github.com
Create a commit
  /usr/bin/git commit -m docs: Update coverage report and badge [CI] 68c25d935415e44ac9d3d9f14f6d8db565e278f6
  On branch gh-pages
  nothing to commit, working tree clean
  [INFO] skip commit
Push the commit or tag
  /usr/bin/git push origin gh-pages
  Everything up-to-date
[INFO] Action successfully completed

Additional context.

No response

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions