Skip to content

Instantly share code, notes, and snippets.

@kaipm
Last active April 5, 2022 18:44
Show Gist options
  • Save kaipm/c4ca0b0a837be5bb0dcd37703488c8f1 to your computer and use it in GitHub Desktop.
Save kaipm/c4ca0b0a837be5bb0dcd37703488c8f1 to your computer and use it in GitHub Desktop.

windows server actions

For actions using runs-on: windows-latest

  • Set environment variable RELEASE_VERSION depending on tag

    - name: Set tag version env
      run: |
        chcp 65001 # utf-8
        echo ("RELEASE_VERSION=" + $env:GITHUB_REF.split("/")[-1]) >> $env:GITHUB_ENV
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment