Skip to content

Commit 9028ed8

Browse files
authored
ci: update github.repository checks for the rename to prisma/orm (#30180)
## Summary The repository was renamed from prisma/prisma to prisma/orm, so `github.repository == 'prisma/prisma'` is now always false. Two things have been silently skipped on this branch since the rename: - the eight BuildPulse upload steps in `.github/workflows/test-template.yml` - the benchmark job in `.github/workflows/benchmark.yml` This PR updates those guards to `'prisma/orm'`. The guards keep their purpose: forks still see a different `github.repository`, so they still skip these steps. Also updated, cosmetic only: the Slack release titles in `publish.yml` and one comment in `v7-update-engines-version.yml`. ## Testing performed - `grep -rP "prisma/prisma(?![-_A-Za-z])" .github/workflows/` finds no remaining bare references. `@prisma/prisma-schema-wasm` and `prisma/prisma-engines` references are intentionally untouched. - The diff changes only string literals inside existing expressions and one comment; no YAML structure changed. ## Related PRs Companion rename fixes: #30179 (`main` publish notification), prisma/engines-wrapper#539 (workflow dispatch target), prisma/prisma-engines#5859 (Makefile clone URL). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Updated automated workflows to reference the current repository. - Benchmarking and build metrics uploads now run under the correct repository context. - Release notifications now identify the correct repository. - Updated integration-testing workflow documentation to reflect the current repository. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Oleksii Orlenko <robot@aqrln.net>
1 parent 312e543 commit 9028ed8

4 files changed

Lines changed: 13 additions & 13 deletions

File tree

‎.github/workflows/benchmark.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
runs-on: ubuntu-latest
5252
# Only run on the main repo (not on forks): neither the CodSpeed token nor write
5353
# access to the `gh-pages` benchmark history is available to a fork.
54-
if: github.repository == 'prisma/prisma'
54+
if: github.repository == 'prisma/orm'
5555
steps:
5656
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
5757

‎.github/workflows/publish.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ env:
6161
FAILURE_TITLE_TEMPLATE: >-
6262
${{
6363
github.event.inputs.targetVersion &&
64-
format('prisma/prisma Release {0} from {1} on latest tag failed :x:', github.event.inputs.targetVersion, github.ref_name) ||
65-
'prisma/prisma Release failed :x:'
64+
format('prisma/orm Release {0} from {1} on latest tag failed :x:', github.event.inputs.targetVersion, github.ref_name) ||
65+
'prisma/orm Release failed :x:'
6666
}}
6767
6868
jobs:
@@ -165,7 +165,7 @@ jobs:
165165
- name: Slack Notification on Success
166166
uses: rtCamp/action-slack-notify@c33737706dea87cd7784c687dadc9adf1be59990 # v2.3.2
167167
env:
168-
SLACK_TITLE: 'prisma/prisma Release ${{ needs.release.outputs.prismaVersion }} succeeded :white_check_mark:'
168+
SLACK_TITLE: 'prisma/orm Release ${{ needs.release.outputs.prismaVersion }} succeeded :white_check_mark:'
169169
SLACK_COLOR: '#55ff55'
170170
SLACK_WEBHOOK: ${{ secrets.SLACK_RELEASE_FEED_WEBHOOK }}
171171
SLACK_CHANNEL: feed-prisma-publish

‎.github/workflows/test-template.yml‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ jobs:
145145
- name: Upload test results to BuildPulse for flaky test detection
146146
# Only run this step for branches where we have access to secrets.
147147
# Run this step even when the tests fail. Skip if the workflow is cancelled.
148-
if: env.HAS_BUILDPULSE_SECRETS == 'true' && !cancelled() && inputs.reason == 'buildpulse' && github.repository == 'prisma/prisma'
148+
if: env.HAS_BUILDPULSE_SECRETS == 'true' && !cancelled() && inputs.reason == 'buildpulse' && github.repository == 'prisma/orm'
149149
uses: buildpulse/buildpulse-action@d0d30f53585cf16b2e01811a5a753fd47968654a # v0.11.0
150150
with:
151151
account: 17219288
@@ -197,7 +197,7 @@ jobs:
197197
- name: Upload test results to BuildPulse for flaky test detection
198198
# Only run this step for branches where we have access to secrets.
199199
# Run this step even when the tests fail. Skip if the workflow is cancelled.
200-
if: env.HAS_BUILDPULSE_SECRETS == 'true' && !cancelled() && inputs.reason == 'buildpulse' && github.repository == 'prisma/prisma'
200+
if: env.HAS_BUILDPULSE_SECRETS == 'true' && !cancelled() && inputs.reason == 'buildpulse' && github.repository == 'prisma/orm'
201201
uses: buildpulse/buildpulse-action@d0d30f53585cf16b2e01811a5a753fd47968654a # v0.11.0
202202
with:
203203
account: 17219288
@@ -265,7 +265,7 @@ jobs:
265265
- name: Upload test results to BuildPulse for flaky test detection
266266
# Only run this step for branches where we have access to secrets.
267267
# Run this step even when the tests fail. Skip if the workflow is cancelled.
268-
if: env.HAS_BUILDPULSE_SECRETS == 'true' && !cancelled() && inputs.reason == 'buildpulse' && github.repository == 'prisma/prisma'
268+
if: env.HAS_BUILDPULSE_SECRETS == 'true' && !cancelled() && inputs.reason == 'buildpulse' && github.repository == 'prisma/orm'
269269
uses: buildpulse/buildpulse-action@d0d30f53585cf16b2e01811a5a753fd47968654a # v0.11.0
270270
with:
271271
account: 17219288
@@ -332,7 +332,7 @@ jobs:
332332
- name: Upload test results to BuildPulse for flaky test detection
333333
# Only run this step for branches where we have access to secrets.
334334
# Run this step even when the tests fail. Skip if the workflow is cancelled.
335-
if: env.HAS_BUILDPULSE_SECRETS == 'true' && !cancelled() && inputs.reason == 'buildpulse' && github.repository == 'prisma/prisma'
335+
if: env.HAS_BUILDPULSE_SECRETS == 'true' && !cancelled() && inputs.reason == 'buildpulse' && github.repository == 'prisma/orm'
336336
uses: buildpulse/buildpulse-action@d0d30f53585cf16b2e01811a5a753fd47968654a # v0.11.0
337337
with:
338338
account: 17219288
@@ -387,7 +387,7 @@ jobs:
387387
- name: Upload test results to BuildPulse for flaky test detection
388388
# Only run this step for branches where we have access to secrets.
389389
# Run this step even when the tests fail. Skip if the workflow is cancelled.
390-
if: env.HAS_BUILDPULSE_SECRETS == 'true' && !cancelled() && inputs.reason == 'buildpulse' && github.repository == 'prisma/prisma'
390+
if: env.HAS_BUILDPULSE_SECRETS == 'true' && !cancelled() && inputs.reason == 'buildpulse' && github.repository == 'prisma/orm'
391391
uses: buildpulse/buildpulse-action@d0d30f53585cf16b2e01811a5a753fd47968654a # v0.11.0
392392
with:
393393
account: 17219288
@@ -510,7 +510,7 @@ jobs:
510510
- name: Upload test results to BuildPulse for flaky test detection
511511
# Only run this step for branches where we have access to secrets.
512512
# Run this step even when the tests fail. Skip if the workflow is cancelled.
513-
if: env.HAS_BUILDPULSE_SECRETS == 'true' && !cancelled() && inputs.reason == 'buildpulse' && github.repository == 'prisma/prisma'
513+
if: env.HAS_BUILDPULSE_SECRETS == 'true' && !cancelled() && inputs.reason == 'buildpulse' && github.repository == 'prisma/orm'
514514
uses: buildpulse/buildpulse-action@d0d30f53585cf16b2e01811a5a753fd47968654a # v0.11.0
515515
with:
516516
account: 17219288
@@ -1051,7 +1051,7 @@ jobs:
10511051
- name: Upload test results to BuildPulse for flaky test detection
10521052
# Only run this step for branches where we have access to secrets.
10531053
# Run this step even when the tests fail. Skip if the workflow is cancelled.
1054-
if: env.HAS_BUILDPULSE_SECRETS == 'true' && !cancelled() && inputs.reason =='buildpulse' && github.repository == 'prisma/prisma'
1054+
if: env.HAS_BUILDPULSE_SECRETS == 'true' && !cancelled() && inputs.reason =='buildpulse' && github.repository == 'prisma/orm'
10551055
uses: buildpulse/buildpulse-action@d0d30f53585cf16b2e01811a5a753fd47968654a # v0.11.0
10561056
with:
10571057
account: 17219288
@@ -1272,7 +1272,7 @@ jobs:
12721272
- name: Upload test results to BuildPulse for flaky test detection
12731273
# Only run this step for branches where we have access to secrets.
12741274
# Run this step even when the tests fail. Skip if the workflow is cancelled.
1275-
if: env.HAS_BUILDPULSE_SECRETS == 'true' && !cancelled() && inputs.reason == 'buildpulse' && github.repository == 'prisma/prisma'
1275+
if: env.HAS_BUILDPULSE_SECRETS == 'true' && !cancelled() && inputs.reason == 'buildpulse' && github.repository == 'prisma/orm'
12761276
uses: buildpulse/buildpulse-action@d0d30f53585cf16b2e01811a5a753fd47968654a # v0.11.0
12771277
with:
12781278
account: 17219288

‎.github/workflows/v7-update-engines-version.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ jobs:
154154
number: ${{ steps.cpr.outputs.pull-request-number }}
155155

156156
#
157-
# Integration Engine PR for end to end testing (From prisma/prisma-engines to prisma/prisma and finally npm)
157+
# Integration Engine PR for end to end testing (From prisma/prisma-engines to prisma/orm and finally npm)
158158
# This will create a draft PR as we don't want to merge it
159159
# But we want to publish it to npm
160160
# For that we can create an `integration/` branch

0 commit comments

Comments
 (0)