Skip to content

Conversation

bobdoah
Copy link

@bobdoah bobdoah commented May 25, 2022

The files included can be a list. This reduces duplication in a situation where you want to include multiple files from a single repository. For example:

include:
  - project: "gitlab-ci/templates"
    ref: master
    file:
      - "templates/MergeRequest-Pipelines.gitlab-ci.yml"
      - "templates/Common.gitlab-ci.yml"

is valid.

Robert Williams added 4 commits May 4, 2022 14:58
The GitHub action fails on branch/PR builds, because it always pulls
the library from the master branhc.

Use a local path, and if not available fallback to the GitHub URL.
The included files can be a list of multiple files. This reduces
duplication of project references.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant