From d8c8afd6bf150ce10aac8dda2b684420c8af9940 Mon Sep 17 00:00:00 2001 From: AmineAbri Date: Wed, 25 Sep 2024 09:54:29 +0100 Subject: [PATCH] auto versioning --- .drone.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 8e50d79..efa3f6c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -42,10 +42,11 @@ steps: commands: - git config user.name "drone-ci" - git config user.email "drone-ci@no-reply.com" - - git remote set-url origin "https://${GITHUB_TOKEN}@github.com/UKHomeOffice/inquiry-charts.git" + - git fetch origin main + - git checkout main - git add Chart.yaml index.yaml - git commit -m "Update Helm chart version to ${DRONE_TAG} and update index.yaml" - - git push origin HEAD + - git push "https://${GITHUB_TOKEN}@github.com/UKHomeOffice/inquiry-charts.git" main when: event: - tag