espressif / esp-idf-ci-action

GitHub Action for ESP32 CI
MIT License
59 stars 24 forks source link

How to pass environment variables to the build? (RDT-308) #23

Closed rodja closed 1 year ago

rodja commented 1 year ago

I would like to set PROJECT_VER and PROJECT_NAME environment variables. How can this be accomplished?

kumekay commented 1 year ago

Hi @rodja

You can override the default command in your workflow:

...
    - name: esp-idf build
      uses: espressif/esp-idf-ci-action@v1
      with:
        command: 'PROJECT_VER="1.0.0" idf.py build'
rodja commented 1 year ago

Thanks, I'll try that.