This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

ci: setup job to update schema prisma

+17 -1
+17 -1
.gitlab-ci.yml
··· 45 45 stage: test 46 46 rules: 47 47 - when: always 48 - - if: $CI_PIPELINE_SOURCE == "schedule" 49 48 before_script: 50 49 - apk add curl 51 50 - just updateschema 52 51 - cp schema.prisma original_schema.prisma 52 + script: 53 53 - | 54 54 if [ diff -q schema.prisma original_schema.prisma ]; then 55 55 echo "Generated schema.prisma is different from original, please run 'just updateschema' and commit the changes" 56 56 exit 1 57 57 fi 58 + 59 + update:prisma-schema: 60 + image: registry.inpt.fr/inp-net/images/go-just:1.23.5-1.39.0 61 + stage: test 62 + rules: 63 + - if: $CI_PIPELINE_SOURCE == "trigger" 64 + before_script: 65 + - apk add curl 66 + - just updateschema 67 + - git config --global user.name gitlab 68 + - git config --global user.email "git@noreply.inpt.fr" 69 + - git remote add gitlab_origin https://changesets:$CHANGESETS_TOKEN@$CI_SERVER_SHELL_SSH_HOST/$CI_PROJECT_PATH || true 70 + script: 71 + - git add schema.prisma 72 + - 'git commit -m "chore(prisma): update schema.prisma after churros/churros change"' 73 + - git push gitlab_origin HEAD:main 58 74 59 75 build: 60 76 extends: .buildkit