Skip to content

Commit

Permalink
add gitlab check
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellhenke committed Jan 25, 2022
1 parent 7284666 commit ac56a36
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .gitlab-ci.yml
Expand Up @@ -64,6 +64,19 @@ stages:
when: never
- if: $CI_COMMIT_BRANCH

check_changelog:
extends: .on_push
stage: build
script:
- |
if [ "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME" != "main" ]
then
echo "Skipping because this is not a PR or is not targeting main"
exit 0
else
git fetch origin --quiet
./scripts/changelog-check -b origin/"${CI_MERGE_REQUEST_TARGET_BRANCH_NAME}" -s origin/"${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME}"
fi
install:
extends: .on_push
stage: build
Expand Down

0 comments on commit ac56a36

Please sign in to comment.