diff --git a/.github/actions/set-up-vcpkg-binary-cache-action/action.yml b/.github/actions/set-up-vcpkg-binary-cache-action/action.yml index 5a03147f..95de79a2 100644 --- a/.github/actions/set-up-vcpkg-binary-cache-action/action.yml +++ b/.github/actions/set-up-vcpkg-binary-cache-action/action.yml @@ -22,20 +22,22 @@ runs: - name: Setup NuGet Credentials for vcpkg shell: bash run: | - if [ "$RUNNER_OS" == "Windows" ]; then - alias vcpkg_nuget=`./dependencies/vcpkg/vcpkg.exe fetch nuget | tail -n 1` - else - alias vcpkg_nuget="mono `./dependencies/vcpkg/vcpkg fetch nuget | tail -n 1`" - fi + function vcpkg_nuget() { + if [ "$RUNNER_OS" == "Windows" ]; then + `./dependencies/vcpkg/vcpkg.exe fetch nuget | tail -n 1` "$@" + else + mono `./dependencies/vcpkg/vcpkg fetch nuget | tail -n 1` "$@" + fi + } vcpkg_nuget \ - sources add \ - -source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" \ - -storepasswordincleartext \ - -name "GitHub" \ - -username "${{ github.repository_owner }}" \ - -password "${{ inputs.github-token }}" + sources add \ + -source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" \ + -storepasswordincleartext \ + -name "GitHub" \ + -username "${{ github.repository_owner }}" \ + -password "${{ inputs.github-token }}" vcpkg_nuget \ - setapikey "${{ inputs.github-token }}" \ - -source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" + setapikey "${{ inputs.github-token }}" \ + -source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" diff --git a/.github/workflows/build_check.yml b/.github/workflows/build_check.yml index 5d24b0c6..4760de3a 100644 --- a/.github/workflows/build_check.yml +++ b/.github/workflows/build_check.yml @@ -1,5 +1,6 @@ name: Build check -on: +on: + workflow_dispatch: pull_request: paths-ignore: - "*.md"