From a9988361e674fffa0b539b97ff486afb55cc1ffb Mon Sep 17 00:00:00 2001 From: SSimco <37044560+SSimco@users.noreply.github.com> Date: Sat, 30 Aug 2025 21:24:04 +0300 Subject: [PATCH] update workflows --- .../action.yml | 28 ++++++++++--------- .github/workflows/build_check.yml | 3 +- 2 files changed, 17 insertions(+), 14 deletions(-) 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"