From 53dcdf514c76fe6752b4383da62ec3677134d924 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 27 May 2023 11:40:40 +0800 Subject: [PATCH] Update validation.yml --- .github/workflows/validation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index 8a1b5b9..5a7e4d6 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -39,7 +39,7 @@ jobs: - name: Find Files id: find_files run: | - if [[ ${{ github.event_name }} == 'pull_request' ]]; then + if [[ "${{ github.event_name }}" == 'pull_request' ]]; then files=$(curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ "https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files?per_page=100" \ | jq -r '.[] | select(.status == "added" or .status == "modified") | .filename' \