Skip to content
Snippets Groups Projects

ci: Fix review app from forks

Closed Lukas Eipert requested to merge leipert-fix-review-app-from-forks into main
1 file
+ 8
4
Compare changes
  • Side-by-side
  • Inline
+ 8
4
@@ -50,14 +50,14 @@ build-and-check:
needs:
- build-and-check
stage: deploy
before_script:
before_script:
- apk add --update-cache --no-cache bash
publish-to-npm:
extends: .publish
publish-to-npm-dry-run:
extends:
extends:
- .publish
rules:
# Semantic release checks the target repository for the current branch,
@@ -68,7 +68,11 @@ publish-to-npm-dry-run:
- semantic-release --branches "$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME" --dry-run --no-ci
.review-app:
extends: .rules:only-mrs
rules:
# Semantic release checks the target repository for the current branch,
# which only exists on the source repository, causing a failure.
- !reference ['.rules:exclude-forks', rules]
- !reference ['.rules:only-mrs', rules]
stage: deploy
tags:
- nginx
@@ -118,4 +122,4 @@ pages:
- ls -alth public/
artifacts:
paths:
- public
\ No newline at end of file
- public
Loading