-
Notifications
You must be signed in to change notification settings - Fork 291
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
Add pre:
and post:
action for cleaning up
#384
Conversation
pre:
and post:
action for clearing accountspre:
and post:
action for cleaning up
Got the following errors from a self-deployed github action runner:
Wonder how to prepare |
Hi @will-beta-clique, have you installed azure-cli on your self-deployed runner? You can refer to https://learn.microsoft.com/en-us/cli/azure/install-azure-cli. |
We are seeing the same issue. Previously we installed the azure cli as a separate step in the workflow before the login. |
As this happens in a PRE step this is causing any workflows running on runners without |
Yup nice for breaking all workflow running self hosted runners. The pre step don't even let you any chance to install az cli :/ |
Bug issue: #403 |
Hi @will-beta-clique @szberes @opdude @benjamin-rousseau-shift @kristeey, please first pin the version to |
Having another issue with this release this morning. Can no longer use dynamically retrieved output values for credentials using the github actions JSON tooling, since the function is executed before the pipeline can populate it:
Results in |
i see the same issue when we use secrets to be fetched from previous step of the workflow 'fromJSON(steps.xyz)' |
Bug issue: Issue 405 |
Description
This pr will add
pre:
andpost:
action for cleaning up to solve the issue #383 and #374.The
pre:
andpost:
action run at the start and the end of a job respectively, instead of running cleaning up azure accounts at the beginning of themain:
action. This enables users to switch active azure accounts logged in by azure/login within the job, see scenario in #383. Meanwhile, it ensures a more clean and secure environment for login, see #376 (comment).Release tests:
https://github.com/Azure/azclitools-actions-test/actions/runs/7345677123
https://github.com/Azure/azclitools-actions-test/actions/runs/7345708979
Example:
Since setting environment variable for agent is required in current process, there is no need to use
core.exportVariable
. See https://github.com/actions/toolkit/blob/main/packages/core/README.md#exporting-variables,core.exportVariable
is used to add environment variable to this step and future steps environment blocks.