question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warning about GITHUB_STEP_SUMMARY env var

See original GitHub issue

I get this warning for each build execution. Is there anything I can do against that? From the linked documentation I learned that the file and env var GITHUB_STEP_SUMMARY should be set by Github, right?

We are using GitHub Enterprise Server 3.3.10. I can not share a link to the internal repositories. Version 1.39 of the action was used.

This is the log output of the step:

2022-07-19 06:39:08 +0000 - publish -  INFO - Reading build/test-results/**/*.xml (34 files, 2.1 MiB)
2022-07-19 06:39:08 +0000 - publish -  INFO - Available memory to read files: 5.9 GiB
2022-07-19 06:39:08 +0000 - publish -  INFO - Finished reading 34 files in 0.06 seconds
2022-07-19 06:39:08 +0000 - publish -  INFO - Publishing failure results for commit f5eaa3572aa120e90acae4c210741b[26](https://github.xxxx/xxx/xxx/runs/1843157?check_suite_focus=true#step:10:26)65c139ba
2022-07-19 06:39:10 +0000 - publish -  INFO - Created check https://github.xxxx/xxx/xxx/runs/1843185
2022-07-19 06:39:10 +0000 - publish - WARNING - Cannot append to environment file GITHUB_STEP_SUMMARY as it is not set. See https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#environment-files
2022-07-19 06:39:10 +0000 - publish -  INFO - Created job summary
2022-07-19 06:39:14 +0000 - publish -  INFO - Edited comment for pull request #53: https://github.xxx.com/xxx/xxx/pull/53#issuecomment-1333[28](https://github.xxx.com/xxx/xxx/runs/1843157?check_suite_focus=true#step:10:28)
Warning: Cannot append to environment file GITHUB_STEP_SUMMARY as it is not set. See https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#environment-files

The action is called like this:

    - name: Publish Test Results
      uses: EnricoMi/publish-unit-test-result-action@v1
      if: always()
      with:
        files: "build/test-results/**/*.xml"

It is executed on a Linux runner. I get the warning for regular commit (push) builds and for PRs.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
EnricoMicommented, Jul 19, 2022

All features work, only the job summary won’t appear. Thanks for reporting!

0reactions
buehlerjochencommented, Oct 10, 2022

Just to complete the information on this “issue”: We learned that just updating to GHActions Runner version 2.288.0 was not sufficient to use GITHUB_STEP_SUMMARY. It was also necessary to upgrade GH Enterprise to version 3.5+ because older versions do not set the variable.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Workflow commands for GitHub Actions
Workflow commands for GitHub Actions · Setting a notice message. Creates a notice message and prints the message to the log. · Setting...
Read more >
Supercharging GitHub Actions with Job Summaries
Create summaries. Simply output Markdown content to a new environment variable we've introduced called $GITHUB_STEP_SUMMARY. Any Markdown ...
Read more >
GitHub Actions Survival Skills - Kevin Wang's Blog
Warning: Environment variables set within individual jobs are only available to steps within that job. This is likely by design to prevent cross ......
Read more >
Echo Github Action Environment variables
I'm trying to dive in the GitHub action, and so on the .ylm files, and to understand the process I would like to...
Read more >
GitHub Actions Set Output Migration For Multiline Pull Request ...
This version was causing the warning above. First step of the job: reads env.report_filename file content into the local (bash) report variable ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found