From a4321716faa2f27596b445792f350eedba2e6e4f Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Fri, 2 Apr 2021 08:44:13 -0400 Subject: [PATCH 1/3] Update test.yml --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 248be804..313f8d0b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,6 +16,7 @@ jobs: - name: Checkout uses: actions/checkout@v2 - name: Run changed-files with defaults + if: github.event_name == 'pull_request' id: changed-files uses: ./ - name: Show output From 86736298570b2f45099d0adf8d5fb1724dff07a0 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Fri, 2 Apr 2021 08:45:11 -0400 Subject: [PATCH 2/3] Update test.yml --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 313f8d0b..36a09571 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,7 +30,7 @@ jobs: echo $file done - name: Run step when README.md changes - if: github.event_name == 'pull_request' && contains("${{ steps.changed-files.outputs.modified_files }}", 'README.md') + if: contains("${{ steps.changed-files.outputs.modified_files }}", 'README.md') run: | echo "Your README.md has been modified." - name: Run changed-files with comma separator From 48835883f9ff4fb81ab3f379e1b1da8f9557bca0 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Fri, 2 Apr 2021 08:46:17 -0400 Subject: [PATCH 3/3] Update test.yml --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 36a09571..1b754d59 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,7 +30,7 @@ jobs: echo $file done - name: Run step when README.md changes - if: contains("${{ steps.changed-files.outputs.modified_files }}", 'README.md') + if: contains(${{ steps.changed-files.outputs.modified_files }}, "README.md") run: | echo "Your README.md has been modified." - name: Run changed-files with comma separator