Skip to content

Commit

Permalink
Only try to create scheduled test failure issues on main repo
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Farr <[email protected]>
  • Loading branch information
Xtansia committed Aug 28, 2024
1 parent afc4e9f commit e2bf2e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ jobs:
- name: GitHub App token
id: github_app_token
uses: tibdex/[email protected]
if: github.event_name == 'schedule'
if: github.event_name == 'schedule' && github.repository == 'opensearch-project/opensearch-rs'
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
Expand Down Expand Up @@ -224,7 +224,7 @@ jobs:
opensearch-*/logs/*
- name: Create issue about failure
if: failure() && github.event_name == 'schedule'
if: failure() && github.event_name == 'schedule' && github.repository == 'opensearch-project/opensearch-rs'
uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ steps.github_app_token.outputs.token }}
Expand Down

0 comments on commit e2bf2e0

Please sign in to comment.