From 0a59d44c8ba98c9d23a5d0b4c177771965316570 Mon Sep 17 00:00:00 2001 From: Sudip Kundu Date: Fri, 6 Oct 2023 18:59:03 +0530 Subject: [PATCH 1/2] fix: #1307 --- .github/workflows/auto-author-assign.yml | 1 + .github/workflows/contributions.yml | 2 +- .github/workflows/cypress.yml | 3 ++- .github/workflows/greetings.yml | 1 + .github/workflows/stale-issue-and-pr.yml | 1 + 5 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-author-assign.yml b/.github/workflows/auto-author-assign.yml index 7915a82de..904867673 100644 --- a/.github/workflows/auto-author-assign.yml +++ b/.github/workflows/auto-author-assign.yml @@ -8,6 +8,7 @@ on: jobs: assign-author: runs-on: ubuntu-latest + if: github.repository == 'reactplay/react-play' steps: - uses: toshimaru/auto-author-assign with: diff --git a/.github/workflows/contributions.yml b/.github/workflows/contributions.yml index 010253019..4f329df0d 100644 --- a/.github/workflows/contributions.yml +++ b/.github/workflows/contributions.yml @@ -8,7 +8,7 @@ concurrency: cancel-in-progress: true jobs: add-contributors: - if: github.event.pull_request.merged == true + if: github.event.pull_request.merged == true && github.repository == 'reactplay/react-play' runs-on: ubuntu-latest steps: - uses: actions/github-script@v6 diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index dc2db83ac..921d4f17c 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -12,6 +12,7 @@ concurrency: jobs: cypress-run: runs-on: ubuntu-latest + if: github.repository == 'reactplay/react-play' steps: - name: Checkout uses: actions/checkout@v4 @@ -27,7 +28,7 @@ jobs: install-command: | npm install --legacy-peer-deps start: npm start - wait-on: "http://localhost:3000" + wait-on: 'http://localhost:3000' browser: chrome env: # pass GitHub token to detect new build vs re-run build diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml index 7cd7f88e5..40912719b 100644 --- a/.github/workflows/greetings.yml +++ b/.github/workflows/greetings.yml @@ -11,6 +11,7 @@ concurrency: jobs: welcome: runs-on: ubuntu-latest + if: github.repository == 'reactplay/react-play' steps: - uses: actions/checkout@v4 - uses: EddieHubCommunity/gh-action-community/src/welcome@main diff --git a/.github/workflows/stale-issue-and-pr.yml b/.github/workflows/stale-issue-and-pr.yml index c44908eda..9c80e0f0e 100644 --- a/.github/workflows/stale-issue-and-pr.yml +++ b/.github/workflows/stale-issue-and-pr.yml @@ -12,6 +12,7 @@ jobs: stale: name: ๐Ÿงน Clean up stale issues and PRs runs-on: ubuntu-latest + if: github.repository == 'reactplay/react-play' steps: - name: ๐Ÿš€ Stale Issue And PR uses: actions/stale@v8 From b9f0cbf3c42336239fe00cefe1dbd6f35dd265b6 Mon Sep 17 00:00:00 2001 From: Sudip Kundu Date: Fri, 6 Oct 2023 19:06:19 +0530 Subject: [PATCH 2/2] revert unwanted change --- .github/workflows/cypress.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 921d4f17c..7808bd2d5 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -28,7 +28,7 @@ jobs: install-command: | npm install --legacy-peer-deps start: npm start - wait-on: 'http://localhost:3000' + wait-on: "http://localhost:3000" browser: chrome env: # pass GitHub token to detect new build vs re-run build