Skip to content

How to execute a .cmd file using Visual Studio Developer Command prompt in Github actions? #26838

Discussion options

You must be logged in to vote

Hi @ankitkaushaltr ,

Checked the VS Develper Command prompt execution path, please try with below code:

jobs:
  job1:
    runs-on: [Windows-latest]
    steps:
      - name: checkout
        uses: actions/checkout@v2
      - name: shellcheck
        shell: cmd
        run: |
          call "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Visual Studio 2019\Visual Studio Tools\Developer Command Prompt for VS 2019.lnk"
          call ${{ github.workspace}}\test.cmd

Thanks

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
3 participants