Closed GopikaV24 closed 1 year ago
Hi @GopikaV24 this might happen if the file doesnt have executable permissions. You can confirm that using the following command.
ls -l ./path_to_file/file_name.sh
Two methods to fix this:
run: |
chmod +x ./path_to_file/file_name.sh
run: |
sh ./path_to_file/file_name.sh
Hi @t-dedah , I have tried to give permission before CLI action and inside CLI action also, getting the same issue.
We are getting this issue for inlinescript also.
- name: Azure CLI script1
uses: azure/CLI@v1
with:
inlineScript: |
az -v
@GopikaV24 Will it be possible to share the template so that we can replicate the issue?
@t-dedah, By referring below mentioned repo we are creating a selfhosted image and POD in AKS Cluster.
GitHub Runner in Docker Reference: https://github.com/SanderKnape/github-runner
Any updates @t-dedah ?
This issue is stale because it has been open for 7 days with no activity.
This issue is idle because it has been open for 14 days with no activity.
I'm having the same issue when running shell scripts. And I am calling chmod before executing the script.
This issue is idle because it has been open for 14 days with no activity.
This issue is stale because it has been open for 7 days with no activity.
This issue is stale because it has been open for 7 days with no activity.
This issue is idle because it has been open for 14 days with no activity.
Hi @GopikaV24 Can we also confirm if the file actually exists at the required location?
This issue is stale because it has been open for 7 days with no activity.
This issue is idle because it has been open for 14 days with no activity.
Hi, @GopikaV24! I want to know if you are still facing the issue. If yes, could you check whether the AZ_CLI_GITHUB_ACTION_CurrentTime.sh
file is actually in the _temp
directory by running ls -la /_temp
in the inlineScript
of Azure/cli? This file might fail to create for some reason.
For a long time with no activity, closing the issue now. If there is any further question to discuss, please open a new issue.
We are trying to run AzureCLI action in our GitHub self-hosted agent which is created in the AKS cluster. We are getting the following issue,
Agent Image: ubuntu:20.04 AzureCLI version: 2.32.0
Not sure if anything was missed in configuration?