Skip to content

How to construct run command line arguments conditionally? #26408

Answered by Simran-B
vladak asked this question in Actions
Discussion options

You must be logged in to vote

Bash is available on Windows too:

    - name: Build
      shell: bash
      env:
        PULL_REQUEST: ${{ github.head_ref }}
        REPO_SLUG: ${{ github.repository }}
        REF: ${{ github.ref }}
        COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
        SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      run: ./dev/main

Documentation: Using a specific shell

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants