From 67d9e1a586d377f9da45fac63f16c6ef6b8f3f15 Mon Sep 17 00:00:00 2001 From: Zach Burnett Date: Wed, 21 Dec 2022 12:40:17 -0500 Subject: [PATCH 1/2] hotfix to run CI on forks --- .github/workflows/roman_ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/roman_ci.yml b/.github/workflows/roman_ci.yml index a4298306b..9f5c15644 100644 --- a/.github/workflows/roman_ci.yml +++ b/.github/workflows/roman_ci.yml @@ -83,7 +83,7 @@ jobs: os: ubuntu-latest python-version: '3.8' steps: - - if: contains(runner.os, 'Linux') + - if: contains(runner.os, 'Linux') && github.repository_owner == 'spacetelescope' uses: datadog/agent-github-action@v1 with: api_key: ${{ secrets.DD_API_KEY }} From d04adee05dfc43e981da9346ef633f8d18bc3c29 Mon Sep 17 00:00:00 2001 From: Zach Burnett Date: Wed, 21 Dec 2022 12:48:00 -0500 Subject: [PATCH 2/2] don't run on pull request --- .github/workflows/roman_ci.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/roman_ci.yml b/.github/workflows/roman_ci.yml index 9f5c15644..ca89363ff 100644 --- a/.github/workflows/roman_ci.yml +++ b/.github/workflows/roman_ci.yml @@ -83,13 +83,10 @@ jobs: os: ubuntu-latest python-version: '3.8' steps: - - if: contains(runner.os, 'Linux') && github.repository_owner == 'spacetelescope' + - if: contains(runner.os, 'Linux') && github.event_name != 'pull_request' uses: datadog/agent-github-action@v1 with: api_key: ${{ secrets.DD_API_KEY }} - env: - DD_INSIDE_CI: true - DD_HOSTNAME: none - uses: actions/checkout@v3 with: fetch-depth: 0