diff --git a/.github/workflows/deploy-github-pages.yml b/.github/workflows/deploy-github-pages.yml index 1db71dc2..55fea9d8 100644 --- a/.github/workflows/deploy-github-pages.yml +++ b/.github/workflows/deploy-github-pages.yml @@ -24,6 +24,10 @@ concurrency: jobs: deploy-github-pages: + # Only run this job on the original repository! To run this on your fork, + # update or remove the line below. + if: github.repository == 'code-chronicles-code/leetcode-curriculum' + environment: name: deploy-github-pages url: ${{ steps.deployment.outputs.page_url }} diff --git a/.github/workflows/post-leetcode-potd-to-discord.yml b/.github/workflows/post-leetcode-potd-to-discord.yml index b63bce16..cb017907 100644 --- a/.github/workflows/post-leetcode-potd-to-discord.yml +++ b/.github/workflows/post-leetcode-potd-to-discord.yml @@ -21,6 +21,10 @@ concurrency: jobs: post-leetcode-potd-to-discord: + # Only run this job on the original repository! To run this on your fork, + # update or remove the line below. + if: github.repository == 'code-chronicles-code/leetcode-curriculum' + environment: name: post-leetcode-potd-to-discord diff --git a/.github/workflows/update-leetcode-problem-data.yml b/.github/workflows/update-leetcode-problem-data.yml index e28ec4aa..d7371e73 100644 --- a/.github/workflows/update-leetcode-problem-data.yml +++ b/.github/workflows/update-leetcode-problem-data.yml @@ -22,6 +22,10 @@ permissions: jobs: update-problem-data: + # Only run this job on the original repository! To run this on your fork, + # update or remove the line below. + if: github.repository == 'code-chronicles-code/leetcode-curriculum' + runs-on: ubuntu-latest steps: