From 20630e616beb864863ed2689ef9a14994f8b43a9 Mon Sep 17 00:00:00 2001 From: Billy O'Neal Date: Fri, 23 Sep 2022 11:36:45 -0700 Subject: [PATCH] Version lock the github actions actions. (#26933) * Version lock the github actions actions. * Work around https://github.com/actions/runner-images/pull/6196 --- .github/workflows/trustedPR.yml | 2 +- .github/workflows/untrustedPR.yml | 4 +++- .github/workflows/validateDocs.yml | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/trustedPR.yml b/.github/workflows/trustedPR.yml index ce17ba9d78..aa9cb6cd1e 100644 --- a/.github/workflows/trustedPR.yml +++ b/.github/workflows/trustedPR.yml @@ -15,7 +15,7 @@ jobs: comment: permissions: pull-requests: write - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 if: > ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' }} diff --git a/.github/workflows/untrustedPR.yml b/.github/workflows/untrustedPR.yml index ca76f05dbc..4784bc4859 100644 --- a/.github/workflows/untrustedPR.yml +++ b/.github/workflows/untrustedPR.yml @@ -9,7 +9,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 @@ -32,6 +32,8 @@ jobs: git --version + export VCPKG_ROOT=. + git diff --name-status --merge-base HEAD^ HEAD --diff-filter=MAR -- '*portfile.cmake' | sed 's/[MAR]\t*//' | while read filename; do grep -q -E '(vcpkg_install_cmake|vcpkg_build_cmake|vcpkg_configure_cmake|vcpkg_fixup_cmake_targets)' "$filename" && echo " - \`$filename\`" || true; done > .github-pr.deprecated-cmake git diff --name-status --merge-base HEAD^ HEAD --diff-filter=MAR -- '*vcpkg.json' | sed 's/[MAR]\t*//' > .github-pr.changed-manifest-files cat .github-pr.changed-manifest-files | while read filename; do grep -q -E '"license": ' "$filename" || echo " - \`$filename\`" || true; done > .github-pr.missing-license diff --git a/.github/workflows/validateDocs.yml b/.github/workflows/validateDocs.yml index aabdb97b08..3a85654808 100644 --- a/.github/workflows/validateDocs.yml +++ b/.github/workflows/validateDocs.yml @@ -7,7 +7,7 @@ on: jobs: validate: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout