-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Option to not do post-job cleanup #1149
Comments
I agree. I also have a use case where I need to debug the runner after execution and need the checked-out code to persist. |
Same here, i execute other cleanups before that and it will be weird to exclude only the files checked out in order to delete them later with this action. |
We're having the post-job cleanup cause occasional errors, so yes if it's possible to disable this it would be great |
I think this is essential, because I having an issue with post-job cleanup... steps:
- name: Checkout action scheduler
uses: actions/checkout@v3
- name: Schedule automerge
uses: ./.github/runner/auto_merge_runner # The action.yml file is contained in this path of github actions running repo actions.yml steps:
- name: Checkout Working Repo
uses: actions/checkout@v3
with:
repository: 'some/repository'
ref: feature/github_action
token: ${{ inputs.gh_token }}
...
Working steps
... And then, it works well on each process steps, but fails on "Post Schedule automerge" steps:
Because, it's already checked out to "some/repository", the |
I believe this will be an important feature to have for re-using workspace across jobs. If the build artifacts are of significant size and a regression has to be run on it we can use the same workspace. |
We also would like to have this feature, as our build artifacts are too large to be cached, and we want to use the build artifacts in the subsequent jobs. |
We would like to have this feature also. We use kota65535/github-openvpn-connect-action to create VPN connection. |
Wild that this still hasn't been addressed 😕 Has anyone found a workaround? |
Without this functionality, it's impossible to use custom actions because of the failing "post" step. UPDATE. |
Another 'me too'. I'm migrating a very mess workflow that takes 3.5 hours to run. This would make incremental testing directly on self-hosted runner feasible vs. throwing changes at the wall and waiting. |
me too. I need remain some files for next step to use |
The action does some cleanup in post-job (starting with the message "Post job cleanup."). I guess this is useful if the runner is reused, but I don't see the point of doing any cleanup on an ephemeral runner, that will be thrown away anyway. This is an issue because this cleanup can actually take significant time, like a minute, as you can also see in this run. This adds to the wait time of developers looking for build results, and to the bill paid for non-free runs.
So, it would be great to be able to turn this feature off.
I'm aware that the
clean
parameter exists, but that's for cleaning in the beginning, before fetching.The text was updated successfully, but these errors were encountered: