From 06438ad829830b410e216c42dca0fa2796285941 Mon Sep 17 00:00:00 2001 From: Makram Kamaleddine Date: Fri, 8 Nov 2024 13:22:07 +0400 Subject: [PATCH] .github/workflows: only run github-script for PR --- .github/workflows/ccip-integration-test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ccip-integration-test.yml b/.github/workflows/ccip-integration-test.yml index 24d7bdbf6..5782d1728 100644 --- a/.github/workflows/ccip-integration-test.yml +++ b/.github/workflows/ccip-integration-test.yml @@ -29,6 +29,8 @@ jobs: - name: Fetch latest pull request data id: fetch_pr_data uses: actions/github-script@v6 + # only run this step if the event is a pull request + if: github.event_name == 'pull_request' with: script: | const pr = await github.rest.pulls.get({