Update .gitlab-ci.yml file

This commit is contained in:
Ali Amr Ali Taha Elnwegy 2025-05-28 08:07:00 +02:00
parent c92be87136
commit f2a64781c4

View File

@ -17,17 +17,12 @@
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Getting-Started.gitlab-ci.yml # https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Getting-Started.gitlab-ci.yml
stages: # List of stages for jobs, and their order of execution stages: # List of stages for jobs, and their order of execution
- prepare
- sync - sync
image: python:3.10 image: python:3.10
prepare-job:
stage: prepare
script:
- pip install confluence.md
sync-docs-job: # This job runs in the build stage, which runs first. sync-docs-job: # This job runs in the build stage, which runs first.
stage: sync stage: sync
script: script:
- pip install confluence.md
- confluence.md --user $CU_USER --token $CU_SECRET --url https://imek.atlassian.net update --file README.md --page_id 1134493746 --title $(head -n1 README.md | cut -d' ' -f2-) - confluence.md --user $CU_USER --token $CU_SECRET --url https://imek.atlassian.net update --file README.md --page_id 1134493746 --title $(head -n1 README.md | cut -d' ' -f2-)