Skip to content

Commit

Permalink
Updated Yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
matt- committed May 17, 2024
1 parent 5f251e5 commit 1546ea9
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions ci/gitlab/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,18 @@

``` YAML
pixee:
image: codemodder/pixee-ci-gitlab:0.0.2
image: codemodder/pixee-ci-gitlab:0.0.4
script:
- echo ONMERGE
- echo $CI_MERGE_REQUEST_IID
- echo $CI_MERGE_REQUEST_TARGET_BRANCH_NAME
- echo $CI_DEFAULT_BRANCH
- FILES=$(git --no-pager diff --name-only $CI_MERGE_REQUEST_DIFF_BASE_SHA...HEAD)
- echo $FILES
- 'FILESTR=$(echo "$FILES" | sed "s/^/**/" | tr "\n" ",")'
- echo $FILESTR
- pixee fix --apply-fixes --path-include $FILESTR $CI_PROJECT_DIR
- pip install -r /pixee/gitlab/requirements.txt
- python /pixee/gitlab/pipeline.py ./results.codetf.json
- /pixee/gitlab/ci.sh

artifacts:
paths:
- results.codetf.json
rules:
# pipeline should run on merge request to release branch
- if: $CI_PIPELINE_SOURCE == 'merge_request_event' && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH
when: always
- when: never

artifacts:
paths:
Expand Down

0 comments on commit 1546ea9

Please sign in to comment.