Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make logdump action output path configurable #111

Merged

Conversation

bschimke95
Copy link
Contributor

Currently, the logdump action output path is hard-coded. Running this action twice in the same CI causes these actions to overwrite each others logs.

With this commit, the path can now be configured by setting the $LOGDUMP_OUTPUT_DIR env variable in a workflow. If it is not set the path will fall-back to tmp_logs_$GITHUB_JOB with $GITHUB_JOB being the unique id of the current running job.

Closes #95

Currently, the logdump action output path is hard-coded. Running this
action twice in the same CI causes these actions to overwrite each
others logs.

With this commit, the path can now be configured by setting the
`$LOGDUMP_OUTPUT_DIR` env variable in a workflow. If it is not set
the path will fall-back to `tmp_logs_$GITHUB_JOB` with $GITHUB_JOB being
the unique id of the current running job.

Closes canonical#95
@bschimke95 bschimke95 force-pushed the bschimke95/make-log-dump-output-configurable branch from f85d535 to cb299a8 Compare September 21, 2023 12:54
Copy link
Contributor

@DnPlas DnPlas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @bschimke95, tiny comment

actions/dump-charm-debug-artifacts/action.yml Show resolved Hide resolved
Copy link
Contributor

@DnPlas DnPlas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @bschimke95, LGTM!

@DnPlas DnPlas merged commit f9f60e6 into canonical:main Sep 21, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix logdump action to allow using it more than once in the same CI run
2 participants