Comments (3)
@jalajmsft - why is this closed? Expected behavior as posted by original user is still NOT resolved:
All user set environment variables are available in inlineScript
Yep, I need this behavior too because I want to reuse the commands and pass variables depending on environment (dev vs production). This is what I am using and it does not work.
- name: "Azure CLI: upload assets to blob storage"
uses: azure/CLI@v1
env:
STORAGE_ACCOUNT: "mystorageaccount"
STORAGE_CONTAINER: "assets"
with:
inlineScript: |
echo "doesn't work $STORAGE_ACCOUNT"
echo "doesn't work either ${{ env.STORAGE_ACCOUNT }}"
echo "so of course below fails"
az storage blob upload-batch \
--account-name ${{ env.STORAGE_ACCOUNT }} \
--source ./public/assets \
--destination ${{ env.STORAGE_CONTAINER }}
from cli.
Um, no idea why @ing @jalajmsft unassigned them from issueβ¦ sorry π€·ββοΈ
from cli.
Nevermind, this was fixed in v1.0.3 release, but the commits never referenced this issue
https://github.com/Azure/cli/releases/tag/v1.0.3
from cli.
Related Issues (20)
- v1.0.7 does not seem to run anything in actions HOT 2
- Windows runner for Azure keyvault HOT 6
- Exported environment variables w/quotes break the docker run command HOT 1
- "docker: invalid reference format: repository name must be lowercase." HOT 2
- Error: Unable to find image 'up:latest' locally HOT 3
- Deploy failed: Pip failed with status code 1 HOT 4
- Unable to fetch all az cli versions HOT 11
- what are the benefits on using azure/CLI action over standard run command HOT 2
- Azure/CLI@V1 Error on Self-Hosted Runner on Azure AKS HOT 4
- az & azure-cli-ml extension for deploying model HOT 7
- invalid reference format: repository name must be lowercase HOT 7
- Update to Node16 and new @actions/core
- Run PowerShell scripts in GitHub actions HOT 5
- Unable to use GITHUB_OUTPUT or GITHUB_STEP_SUMMARY
- Node.js 12 actions are deprecated HOT 3
- "Invalid reference format" error HOT 9
- latest v1.0.7 does not seem to run anything HOT 2
- Issue Running az cli inline command on windows agent HOT 3
- Consider using an improved JMESPath library
- The action not yet support Windows Runner HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.