Giter Site home page Giter Site logo

Comments (3)

julie-ng avatar julie-ng commented on June 28, 2024

@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.

julie-ng avatar julie-ng commented on June 28, 2024

Um, no idea why @ing @jalajmsft unassigned them from issue… sorry πŸ€·β€β™€οΈ

from cli.

julie-ng avatar julie-ng commented on June 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.