Captain
Captain

Reputation: 143

Change include-ref in gitlab-ci.yml to master after merging?

I have following code in a yaml file of a branch of repo

include:
   project: my-project
   ref: test_branch
   file: common.yml

Now after merging it with master how do I make the ref to point to master automatically as the common.yml is in the test_branch only as of now?

Upvotes: 0

Views: 4015

Answers (1)

Simon Schrottner
Simon Schrottner

Reputation: 4754

If the file is within the same repository and you want to access always the file within the same branch, you can also use

include:
  - local: common.yml

Upvotes: 1

Related Questions