From 04ba1c7d47c015604b47232a5c45bb9ffaa882ad Mon Sep 17 00:00:00 2001 From: Micha Wehrli Date: Sun, 26 Nov 2023 23:28:22 +0100 Subject: [PATCH] ci: update pbni-build-action --- .github/workflows/autorelease.yml | 9 ++++++++- .github/workflows/build.yml | 8 +++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/autorelease.yml b/.github/workflows/autorelease.yml index 755e6dc..c350a98 100644 --- a/.github/workflows/autorelease.yml +++ b/.github/workflows/autorelease.yml @@ -34,9 +34,16 @@ jobs: # append_to_pre_release_tag: testrelease # release_branches is default to main/master and will increase the patch number if nothing found in commit messages + + # Needed to give vcpkg access to the private repository + - name: Git Creds + run: git config --global url.https://`${{ secrets.GH_PRIVATE_READ_PAT }}@github.com/.insteadOf https://github.com/ + # The backtick ensures, that the secret isn't written into the config file + # instead, the token will be expanded when go wants to download a package + - name: Build id: build - uses: informaticon/dev.github.base.pbni-build-action@v1.3.0 + uses: informaticon/dev.github.base.pbni-build-action@v1.3.2 with: version: "${{ steps.tag_version.outputs.new_version }}" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 17d86ae..ad73910 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,6 +17,12 @@ jobs: submodules: recursive token: ${{ secrets.GH_PRIVATE_READ_PAT }} + # Needed to give vcpkg access to the private repository + - name: Git Creds + run: git config --global url.https://`${{ secrets.GH_PRIVATE_READ_PAT }}@github.com/.insteadOf https://github.com/ + # The backtick ensures, that the secret isn't written into the config file + # instead, the token will be expanded when go wants to download a package + - name: Build id: build - uses: informaticon/dev.github.base.pbni-build-action@v1 \ No newline at end of file + uses: informaticon/dev.github.base.pbni-build-action@v1.3.2 \ No newline at end of file