Skip to content

rules:changes doesn't work as expected #1662

Open
@martijnbastiaan

Description

@martijnbastiaan

The CI job debian-bindist is only supposed to trigger when files relevant to it change:

# Run every night, when explicitly triggered, or when tagged (release)
.run-on-nightly-and-changes:
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
- if: $CI_PIPELINE_SOURCE == "trigger"
- if: '$CI_COMMIT_TAG != null' # tags
- if: '$CI_COMMIT_TAG == null'
changes:
- .gitlab.yml
- .ci/**/*
- .ci/*
- ./*/*.cabal
# Create Debian packages.
debian-bindist:
extends: .run-on-nightly-and-changes
needs: []
image: docker.pkg.github.com/clash-lang/clash-compiler/bindist-debian-focal:2020-11-20
stage: pack
artifacts:
when: always
paths:
- .ci/bindist/linux/debian/focal/build
expire_in: 1 week
script:
- .ci/bindist/linux/debian/scripts/build.sh focal

This only seems to work every once in a while though. For example, #1660 doesn't change any of the files mentioned, but it did trigger debian-bindist.

This is either a bug in our config file, or an upstream bug.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions