deskflow/.github/actions/get-version/action.yml
Nick Bolton d277c80fd0
Simplify vcpkg caching and use system vcpkg (#7473)
* Fixed OpenSSL exe dir to use tools dir

* Simplify vcpkg caching and use system vcpkg

* Only use ref for version when ref is a tag

* Add condition for event input

* Add restore keys for vcpkg cache

* Improve step name for vcpkg_installed

* Use `windows-2022` runner

* Update ChangeLog

* Revert "Use `windows-2022` runner"

This reverts commit f9e00cbcb3.
2024-09-04 20:26:47 +01:00

16 lines
452 B
YAML

name: "Get version"
description: "Gets the version number from GitHub environment"
runs:
using: "composite"
steps:
- run: |
if [[ "${{ github.ref }}" == refs/tags/* ]]; then
echo "SYNERGY_VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
fi
if [[ "${{ github.event.inputs.version }}" != "" ]]; then
echo "SYNERGY_VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV
fi
shell: bash