From 91b60571b6840dc09cc0eea1f48eb64e5b88a3b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Dvo=C5=99=C3=A1k?= <xdvora19@fi.muni.cz> Date: Thu, 19 Dec 2024 13:15:36 +0100 Subject: [PATCH] fix minor issues --- .gitlab-ci.yml | 4 ++-- README.md | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 006bff8..777af10 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -34,11 +34,11 @@ commit_zip: - git add files-from-repos/intro-definition.zip - git add files-from-repos/showcase-definition.zip - git commit -m "Add authomatically deployment-files.zip" - - git push https://oauth2:${GITLAB_TOKEN}@gitlab.fi.muni.cz/inject/inject-docs.git HEAD:main -o ci.skip + - git push https://oauth2:${GITLAB_TOKEN}@gitlab.fi.muni.cz/inject/inject-docs.git HEAD:"$CI_PIPELINE_ID" -o ci.skip dependencies: - setup only: - - main + - change-me build: stage: build diff --git a/README.md b/README.md index ea3d40e..81daeac 100644 --- a/README.md +++ b/README.md @@ -133,4 +133,5 @@ When adding a new page, you will need to add a new option to this list. A few th To avoid accidental publishing, the tag `only:` should always be set to the name of the branch where it is located. Also, the main branch should never have a valid gitlab-ci.yml that can publish pages. -For that reason the tag `only:` on the main branch of the project should be set to a different name other than the main branch. \ No newline at end of file +For that reason the tag `only:` on the main branch of the project should be set to a different name other than the main branch. +On the main branch, the tag is set to `change-me`, you need to change all of the occurrences of this tag to the current branch name. \ No newline at end of file -- GitLab