diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 006bff85b79d4b922af67d9a03f640b53b721427..777af104546257e1ebc59730b7cfc6cbc13ce24b 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 ea3d40e14c534747c2e9da0f33e5fca3a371c984..81daeac34658294d4977fd0186b21bc9b9d3ad85 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