From 03dd9529e02dac1acfd4ed10478c7f2086da66bf Mon Sep 17 00:00:00 2001 From: Slava Date: Sat, 26 Aug 2023 23:37:32 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2bcdb8d..b829bc7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,23 +6,20 @@ release_job: stage: release # It only runs when *both* jobs in the test stage complete successfully. image: registry.gitlab.com/gitlab-org/release-cli:latest - rules: - - if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH" - - if: $CI_COMMIT_TAG - when: never - - if: - changes: - - README.md - - CHANGELOG - - .gitattribute - - .gitignore - - .gitlab-ci.yml - when: never - - if: - changes: - - data/**/* - - modinfo.lua - - thumb.png + only: + # - if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH" + refs: + - main + - ^tags + changes: + - ^README.md + - ^CHANGELOG + - ^.gitattribute + - ^.gitignore + - ^.gitlab-ci.yml + - data/**/* + - modinfo.lua + - thumb.png script: - echo "Release WPE 2.0_$CI_COMMIT_SHORT_SHA"