Error: bash: /_temp/AZ_CLI_GITHUB_ACTION_1631195248537.sh: No such file or directory
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
**Resource Provider**
storage blob upload
**Description of Feature or Work Requested**
Am trying to execute the following command to upload files to my storage blob using the azure/cli
`az storage blob upload-batch -s $GITHUB_WORKSPACE/AJE -d '$interactives-code' --account-name interactivesstaging` and am getting an error indicating that no such file or directory exists.
The following are the contents of my yml:
`name: CI
on:
pull_request:
branches:
- develop
jobs:
build:
runs-on: [self-hosted, interactives]
steps:
- uses: actions/checkout@v2 # GitHub Actions plugin to checkout repositories
- uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Upload to blob storage
uses: azure/cli@v1
with:
azcliversion: 2.0.72
inlineScript: |
az storage blob upload-batch -s $GITHUB_WORKSPACE/AJE -d '$interactives-code' --account-name interactivesstaging
- name: logout
run: |
az logout
if: always()`
This is the output I am receiving:
`Run azure/login@v1
with:
creds: ***
enable-AzPSSession: false
environment: azurecloud
allow-no-subscriptions: false
/usr/bin/az cloud set -n azurecloud
Done setting cloud: "azurecloud"
Login successful.
1s
Run azure/cli@v1
with:
azcliversion: 2.0.72
inlineScript: az storage blob upload-batch -s $GITHUB_WORKSPACE/AJE -d '$interactives-code' --account-name interactivesstaging
env:
AZURE_HTTP_USER_AGENT:
AZUREPS_HOST_ENVIRONMENT:
Starting script execution via docker image mcr.microsoft.com/azure-cli:2.0.72
Error: Error: bash: /_temp/AZ_CLI_GITHUB_ACTION_1631195248537.sh: No such file or directory
cleaning up container...
MICROSOFT_AZURE_CLI_1631195248439_CONTAINER`
I would be very grateful if you can point me in a direction to sort out why I am getting this 'No such file or directory' error.
**Minimum API Version Required**
default
**Swagger Link**
n/a
**Target Date**
16 Sept 2021
Contributor guide
Assessment
This issue has not been assessed yet.