Skip to content

Commit

Permalink
Minor github bot cleanups. (#26930)
Browse files Browse the repository at this point in the history
* Remove no longer necessary caching step in the github bot.
  • Loading branch information
BillyONeal committed Sep 22, 2022
1 parent 0e0aa20 commit 86eb754
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/untrustedPR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,7 @@ jobs:
# fetch-depth 50 tries to ensure we capture the whole history of the branch
fetch-depth: 50

- uses: actions/cache@v2
id: cache
with:
path: |
./vcpkg
key: ${{ runner.os }}-${{ hashFiles('scripts/bootstrap*') }}

- name: bootstrap
if: steps.cache.outputs.cache-hit != 'true'
run: ./bootstrap-vcpkg.sh

- name: Save PR number
Expand All @@ -38,6 +30,8 @@ jobs:
git config user.email github-actions
git config user.name github-actions@github.com
git --version
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
Expand Down

0 comments on commit 86eb754

Please sign in to comment.