Open
Description
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
First of all, thanks for this awesome action !
I'm using it from a job with a matrix configuration, so the action may run concurrently.
Sometimes, it fails because the gh-pages
branch is not up-to-date (see logs).
Any advice to prevent this?
Relevant links
My repository is private.
Relevant log output
Push the commit or tag
/usr/bin/git push origin gh-pages
To https://github.com/semarchy/mdm.git
! [rejected] gh-pages -> gh-pages (fetch first)
error: failed to push some refs to 'https://github.com/***/mdm.git'
hint: Updates were rejected because the remote contains work that you do not
hint: have locally. This is usually caused by another repository pushing to
hint: the same ref. If you want to integrate the remote changes, use
hint: 'git pull' before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Error: Action failed with "The process '/usr/bin/git' failed with exit code 1"
Additional context.
My matrix configuration:
matrix:
browser: [ chrome, firefox ]
java_version: [ "17", "21" ]
How I have configured the step:
- name: Upload report to GH Pages
uses: peaceiris/actions-gh-pages@v4
if: always()
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: playwright-report/
destination_dir: "${{ env.TIMESTAMP }}/${{ matrix.browser }}/java${{ matrix.java_version }}/report"