Skip to content

Commit

Permalink
fix for publishing lua check report for dependabot branches without s…
Browse files Browse the repository at this point in the history
…eparate workflow
  • Loading branch information
saisatishkarra committed Jan 12, 2024
1 parent b7def0b commit 103b470
Showing 1 changed file with 25 additions and 12 deletions.
37 changes: 25 additions & 12 deletions code-check-actions/lua-lint/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,33 @@ runs:
# run: |
# cat luacheck_${{github.sha}}.xml

# when using the regular GITHUB_TOKEN, the check-run created by this step will be assigned to a
# random workflow in the GH UI. to prevent this, we can force the check-run to be created in a separate
# check-suite, which is created automatically if we use the credentials of a GitHub App
# Ref: https://github.com/EnricoMi/publish-unit-test-result-action/issues/181
# Publishing: https://github.com/EnricoMi/publish-unit-test-result-action#publishing-test-results
# To avoid: https://github.com/EnricoMi/publish-unit-test-result-action?tab=readme-ov-file#support-fork-repositories-and-dependabot-branches
- name: Luacheck Report
uses: EnricoMi/publish-unit-test-result-action@v2
uses: turing85/publish-report@v1
if: always()
with:
files: |
luacheck_${{github.sha}}.xml
check_name: Luacheck Report
comment_mode: always
action_fail: false
fail_on: 'nothing' # Explicitly don't fail reporting check based on test results
cancel-workflow-on-error: 'false'
checkout: 'false'
comment-enabled: 'true'
recreate-comment: 'true'
report-fail-on-error: 'false' # to fail when tests failed
report-name: Luacheck Report
report-path: 'luacheck_${{github.sha}}.xml'

# # when using the regular GITHUB_TOKEN, the check-run created by this step will be assigned to a
# # random workflow in the GH UI. to prevent this, we can force the check-run to be created in a separate
# # check-suite, which is created automatically if we use the credentials of a GitHub App
# # Ref: https://github.com/EnricoMi/publish-unit-test-result-action/issues/181
# # Publishing: https://github.com/EnricoMi/publish-unit-test-result-action#publishing-test-results
# - name: Luacheck Report
# uses: EnricoMi/publish-unit-test-result-action@v2
# if: always()
# with:
# files: |
# luacheck_${{github.sha}}.xml
# check_name: Luacheck Report
# comment_mode: always
# action_fail: false
# fail_on: 'nothing' # Explicitly don't fail reporting check based on test results


0 comments on commit 103b470

Please sign in to comment.