simple-elf / allure-report-action

Allure Report action with history
https://simple-elf.github.io/allure-report-action/
MIT License
116 stars 101 forks source link

environment.properties are overwritten after allure report generation #9

Closed bogdan-lykhyi closed 2 years ago

bogdan-lykhyi commented 3 years ago

I add the some environment properties to the environment.properties file, and I expect them in the report, but for some reason you do this

environment.properties

echo "URL=${GITHUB_PAGES_WEBSITE_URL}" > environment.properties mv ./environment.properties ./${INPUT_ALLURE_RESULTS}

which overwrites my data.

aleksandar-stefanovic-tamedia commented 3 years ago

I have the same problem. I'm generating environment.properties file from @After hook but generated report contains only a URL which is GitHubPage URL.

Maybe to add check if file is present. If not inject content but in a case that file is present do not echo this to file: https://github.com/simple-elf/allure-report-action/blob/master/entrypoint.sh#L51

goncer commented 3 years ago

Created this PR to solve the issue. Does anybody know if this project is no longer maintained? https://github.com/simple-elf/allure-report-action/pull/15