From 9f14a6cd62d9d961ba59f351c2eedc2be197a1f2 Mon Sep 17 00:00:00 2001 From: Neha Sharma Date: Tue, 10 Sep 2024 12:22:30 +0530 Subject: [PATCH 01/14] update semantic.yml --- .github/semantic.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/semantic.yml diff --git a/.github/semantic.yml b/.github/semantic.yml new file mode 100644 index 00000000..6524a157 --- /dev/null +++ b/.github/semantic.yml @@ -0,0 +1,13 @@ +titleOnly: true + +types: + - fix + - feat + - feature + - fixes + - chore + - perf + - docs + - doc + - release + - misc From 69128d0b3347a43b723760e43701731718c93933 Mon Sep 17 00:00:00 2001 From: Neha Sharma <156081591+Neha130@users.noreply.github.com> Date: Thu, 12 Sep 2024 00:51:19 +0530 Subject: [PATCH 02/14] Update semantic.yml From d0a883a8fca371fa07fd3fb12b36fcc3f893f879 Mon Sep 17 00:00:00 2001 From: YashasviDevtron Date: Mon, 16 Sep 2024 19:50:58 +0530 Subject: [PATCH 03/14] Adding gh-action script to create pr for multi-repo dependency sync --- .github/config/multi-gitter-config | 155 +++++++++++++++++++++ .github/scripts/update-version.sh | 30 ++++ .github/workflows/multi-gitter-pr-sync.yml | 52 +++++++ 3 files changed, 237 insertions(+) create mode 100644 .github/config/multi-gitter-config create mode 100644 .github/scripts/update-version.sh create mode 100644 .github/workflows/multi-gitter-pr-sync.yml diff --git a/.github/config/multi-gitter-config b/.github/config/multi-gitter-config new file mode 100644 index 00000000..00dd6c2a --- /dev/null +++ b/.github/config/multi-gitter-config @@ -0,0 +1,155 @@ +# The username of the assignees to be added on the pull request. +assignees: + - systemsdt + +# Email of the committer. If not set, the global git config setting will be used. +author-email: + +# Name of the committer. If not set, the global git config setting will be used. +author-name: + +# The branch which the changes will be based on. +base-branch: + +# Base URL of the target platform, needs to be changed for GitHub enterprise, a self-hosted GitLab instance, Gitea or BitBucket. +base-url: + +# The name of the branch where changes are committed. +branch: + +# The temporary directory where the repositories will be cloned. If not set, the default os temporary directory will be used. +clone-dir: + +# Use a code search to find a set of repositories to target (GitHub only). Repeated results from a given repository will be ignored, forks are NOT included by default (use `fork:true` to include them). See the GitHub documentation for full syntax: https://docs.github.com/en/search-github/searching-on-github/searching-code. +code-search: + +# The commit message. Will default to title + body if none is set. +commit-message: + +# The maximum number of concurrent runs. +concurrent: 1 + +# What should happen if the branch already exist. +# Available values: +# skip: Skip making any changes to the existing branch and do not create a new pull request. +# replace: Replace the existing content of the branch by force pushing any new changes, then reuse any existing pull request, or create a new one if none exist. +conflict-strategy: skip + +# Create pull request(s) as draft. +draft: false + +# Run without pushing changes or creating pull requests. +dry-run: false + +# Limit fetching to the specified number of commits. Set to 0 for no limit. +fetch-depth: 1 + +# Fork the repository instead of creating a new branch on the same owner. +fork: false + +# If set, make the fork to the defined value. Default behavior is for the fork to be on the logged in user. +fork-owner: + +# The type of git implementation to use. +# Available values: +# go: Uses go-git, a Go native implementation of git. This is compiled with the multi-gitter binary, and no extra dependencies are needed. +# cmd: Calls out to the git command. This requires git to be installed and available with by calling "git". +git-type: cmd + +# Labels to be added to any created pull request. +labels: + - dependencies + - multi-gitter + +# The file where all logs should be printed to. "-" means stdout. +log-file: "-" + +# The formatting of the logs. Available values: text, json, json-pretty. +log-format: text + +# The level of logging that should be made. Available values: trace, debug, info, error. +log-level: info + +# If this value is set, reviewers will be randomized. +max-reviewers: 0 + +# If this value is set, team reviewers will be randomized +max-team-reviewers: 0 + +# The name of a GitHub organization. All repositories in that organization will be used. +# org: +# - devtron-labs + +# The file that the output of the script should be outputted to. "-" means stdout. +output: "-" + +# Don't use any terminal formatting when printing the output. +plain-output: false + +# The platform that is used. Available values: github, gitlab, gitea, bitbucket_server, bitbucket_cloud. Note: bitbucket_cloud is in Beta +platform: github + +# The body of the commit message. Will default to everything but the first line of the commit message if none is set. +pr-body: "This PR was created by multi-gitter to sync common-lib changes across multiple repositories." + +# The title of the PR. Will default to the first line of the commit message if none is set. +pr-title: "fix: sync with common-lib changes" + +# The name, including owner of a GitLab project in the format "ownerName/repoName". +project: + - group/project + +# Skip pull request and only push the feature branch. +push-only: false + +# The name, including owner of a GitHub repository in the format "ownerName/repoName". +repo: + - devtron-labs/common-lib-private + - devtron-labs/devtron-enterprise + - devtron-labs/kubewatch + - devtron-labs/kubelink-enterprise + - devtron-labs/image-scanner-enterprise + - devtron-labs/lens + - devtron-labs/ci-runner-enterprise + - devtron-labs/git-sensor-enterprise + - chart-sync-enterprise + - devtron-labs/devtron + - devtron-labs/kubelink + - devtron-labs/image-scanner + - devtron-labs/ci-runner + - devtron-labs/git-sensor + - chart-sync + + + +# Exclude repositories that match with a given Regular Expression +repo-exclude: + +# Include repositories that match with a given Regular Expression +repo-include: + +# Use a repository search to find repositories to target (GitHub only). Forks are NOT included by default, use `fork:true` to include them. See the GitHub documentation for full syntax: https://docs.github.com/en/search-github/searching-on-github/searching-for-repositories. +repo-search: + +# The username of the reviewers to be added on the pull request. +reviewers: + + + + +# Skip repositories which are forks. +skip-forks: false + +# Skip pull request and directly push to the branch. +skip-pr: false + +# Skip changes on specified repositories, the name is including the owner of repository in the format "ownerName/repoName". +skip-repo: + - example + +# Use SSH cloning URL instead of HTTPS + token. This requires that a setup with ssh keys that have access to all repos and that the server is already in known_hosts. +ssh-auth: false + +# The personal access token for the targeting platform. Can also be set using the GITHUB_TOKEN/GITLAB_TOKEN/GITEA_TOKEN/BITBUCKET_SERVER_TOKEN/BITBUCKET_CLOUD_APP_PASSWORD environment variable. +token: + diff --git a/.github/scripts/update-version.sh b/.github/scripts/update-version.sh new file mode 100644 index 00000000..02ba3610 --- /dev/null +++ b/.github/scripts/update-version.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +# Title: Updates a go module to a new (patch/minor) version + +### Change these values ### +MODULE=github.com/devtron-labs/common-lib +VERSION=${VERSION} + +echo "Commit SHA: ${VERSION}" + +# Stop the script if any command fails +set -e + +# Check if the module already exists, abort if it does not +go list -m $MODULE &> /dev/null +status_code=$? +if [ $status_code -ne 0 ]; then + echo "Module \"$MODULE\" does not exist" + exit 1 +fi + +# Update the module to the specified version +go get $MODULE@$VERSION + +go mod tidy + +# Vendor the dependencies +go mod vendor + + diff --git a/.github/workflows/multi-gitter-pr-sync.yml b/.github/workflows/multi-gitter-pr-sync.yml new file mode 100644 index 00000000..e3ffff84 --- /dev/null +++ b/.github/workflows/multi-gitter-pr-sync.yml @@ -0,0 +1,52 @@ +name: Creating PR using Multi-Gitter + +on: + pull_request: + types: [opened, reopened] + branches: + - develop + - main + +jobs: + update-dependencies: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '>=1.17.0' + + - name: Install multi-gitter + run: curl -s https://raw.githubusercontent.com/lindell/multi-gitter/master/install.sh | sh + + - name: Get PR details + env: + HEAD_BRANCH: ${{ github.event.pull_request.head.ref }} + BASE_BRANCH: ${{ github.event.pull_request.base.ref }} + COMMIT_SHA: ${{ github.event.pull_request.head.sha }} + PR_AUTHOR: ${{ github.event.pull_request.user.login }} + PR_AUTHOR_ID: ${{ github.event.pull_request.user.id }} + run: | + echo "HEAD_BRANCH=$HEAD_BRANCH" >> $GITHUB_ENV + echo "BASE_BRANCH=$BASE_BRANCH" >> $GITHUB_ENV + echo "COMMIT_SHA=$COMMIT_SHA" >> $GITHUB_ENV + echo "PR_AUTHOR=$PR_AUTHOR" >> $GITHUB_ENV + echo "PR_AUTHOR_ID=$PR_AUTHOR_ID" >> $GITHUB_ENV + echo "PR_AUTHOR_EMAIL=${PR_AUTHOR_ID}+${PR_AUTHOR}@users.noreply.github.com" >> $GITHUB_ENV + + - name: Update script with PR details + run: | + sed -i 's/VERSION=.*/VERSION=${{ env.COMMIT_SHA }}/' .github/config/multi-gitter-config + sed -i 's/PR_AUTHOR=.*/PR_AUTHOR=${{ env.PR_AUTHOR }}/' .github/config/multi-gitter-config + sed -i 's/HEAD_BRANCH=.*/HEAD_BRANCH=${{ env.HEAD_BRANCH }}/' .github/scripts/update-version.sh + sed -i 's/BASE_BRANCH=.*/BASE_BRANCH=${{ env.BASE_BRANCH }}/' .github/scripts/update-version.sh + + - name: Run multi-gitter + env: + GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} + run: | + chmod +x .github/scripts/update-version.sh + multi-gitter run .github/scripts/update-version.sh --token "$GITEA_TOKEN" --base-branch "$BASE_BRANCH" --branch "$HEAD_BRANCH" --author-name "$PR_AUTHOR" --author-email "$PR_AUTHOR_EMAIL" --config .github/config/multi-gitter-config From 82adc1fc3813bb0c6f528ab22b68ffeab0df1725 Mon Sep 17 00:00:00 2001 From: Yashasvi17 <155513200+YashasviDevtron@users.noreply.github.com> Date: Mon, 16 Sep 2024 20:06:12 +0530 Subject: [PATCH 04/14] Update multi-gitter-config --- .github/config/multi-gitter-config | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/config/multi-gitter-config b/.github/config/multi-gitter-config index 00dd6c2a..ec5c128c 100644 --- a/.github/config/multi-gitter-config +++ b/.github/config/multi-gitter-config @@ -133,6 +133,7 @@ repo-search: # The username of the reviewers to be added on the pull request. reviewers: + - prkhrkat From af80712350541559c09ed7895d1d700cbd1bbaa2 Mon Sep 17 00:00:00 2001 From: Yashasvi17 <155513200+YashasviDevtron@users.noreply.github.com> Date: Fri, 20 Sep 2024 13:14:01 +0530 Subject: [PATCH 05/14] Update multi-gitter-config --- .github/config/multi-gitter-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/config/multi-gitter-config b/.github/config/multi-gitter-config index ec5c128c..5c12b35b 100644 --- a/.github/config/multi-gitter-config +++ b/.github/config/multi-gitter-config @@ -93,7 +93,7 @@ platform: github pr-body: "This PR was created by multi-gitter to sync common-lib changes across multiple repositories." # The title of the PR. Will default to the first line of the commit message if none is set. -pr-title: "fix: sync with common-lib changes" +pr-title: # The name, including owner of a GitLab project in the format "ownerName/repoName". project: From 8ed16e85b7880cfbe74d21d405a5c5e821ab5b09 Mon Sep 17 00:00:00 2001 From: Yashasvi17 <155513200+YashasviDevtron@users.noreply.github.com> Date: Fri, 20 Sep 2024 13:19:39 +0530 Subject: [PATCH 06/14] Update multi-gitter-pr-sync.yml --- .github/workflows/multi-gitter-pr-sync.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/multi-gitter-pr-sync.yml b/.github/workflows/multi-gitter-pr-sync.yml index e3ffff84..15beed0f 100644 --- a/.github/workflows/multi-gitter-pr-sync.yml +++ b/.github/workflows/multi-gitter-pr-sync.yml @@ -2,7 +2,7 @@ name: Creating PR using Multi-Gitter on: pull_request: - types: [opened, reopened] + types: [opened] branches: - develop - main @@ -41,6 +41,7 @@ jobs: run: | sed -i 's/VERSION=.*/VERSION=${{ env.COMMIT_SHA }}/' .github/config/multi-gitter-config sed -i 's/PR_AUTHOR=.*/PR_AUTHOR=${{ env.PR_AUTHOR }}/' .github/config/multi-gitter-config + sed -i 's/HEAD_BRANCH=.*/HEAD_BRANCH=${{ env.HEAD_BRANCH }}/' .github/config/multi-gitter-config sed -i 's/HEAD_BRANCH=.*/HEAD_BRANCH=${{ env.HEAD_BRANCH }}/' .github/scripts/update-version.sh sed -i 's/BASE_BRANCH=.*/BASE_BRANCH=${{ env.BASE_BRANCH }}/' .github/scripts/update-version.sh @@ -49,4 +50,4 @@ jobs: GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} run: | chmod +x .github/scripts/update-version.sh - multi-gitter run .github/scripts/update-version.sh --token "$GITEA_TOKEN" --base-branch "$BASE_BRANCH" --branch "$HEAD_BRANCH" --author-name "$PR_AUTHOR" --author-email "$PR_AUTHOR_EMAIL" --config .github/config/multi-gitter-config + multi-gitter run .github/scripts/update-version.sh --token "$GITEA_TOKEN" --base-branch "$BASE_BRANCH" --branch "$HEAD_BRANCH" --author-name "$PR_AUTHOR" --author-email "$PR_AUTHOR_EMAIL" --pr-title "Sync with changes from the $HEAD_BRANCH of common-lib" --config .github/config/multi-gitter-config From bdca7807515d3ea888fc0dcb77ad7a7789396bd8 Mon Sep 17 00:00:00 2001 From: Yashasvi17 <155513200+YashasviDevtron@users.noreply.github.com> Date: Fri, 20 Sep 2024 13:21:22 +0530 Subject: [PATCH 07/14] Update multi-gitter-pr-sync.yml --- .github/workflows/multi-gitter-pr-sync.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/multi-gitter-pr-sync.yml b/.github/workflows/multi-gitter-pr-sync.yml index 15beed0f..f51b747b 100644 --- a/.github/workflows/multi-gitter-pr-sync.yml +++ b/.github/workflows/multi-gitter-pr-sync.yml @@ -50,4 +50,4 @@ jobs: GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} run: | chmod +x .github/scripts/update-version.sh - multi-gitter run .github/scripts/update-version.sh --token "$GITEA_TOKEN" --base-branch "$BASE_BRANCH" --branch "$HEAD_BRANCH" --author-name "$PR_AUTHOR" --author-email "$PR_AUTHOR_EMAIL" --pr-title "Sync with changes from the $HEAD_BRANCH of common-lib" --config .github/config/multi-gitter-config + multi-gitter run .github/scripts/update-version.sh --token "$GITEA_TOKEN" --base-branch "$BASE_BRANCH" --branch "$HEAD_BRANCH" --author-name "$PR_AUTHOR" --author-email "$PR_AUTHOR_EMAIL" --pr-title "Sync with changes from the $HEAD_BRANCH branch of common-lib" --config .github/config/multi-gitter-config From 856c83ce487a8124a803ddc62b1a945a2649f7f2 Mon Sep 17 00:00:00 2001 From: Yashasvi17 <155513200+YashasviDevtron@users.noreply.github.com> Date: Fri, 20 Sep 2024 13:23:48 +0530 Subject: [PATCH 08/14] Update multi-gitter-pr-sync.yml --- .github/workflows/multi-gitter-pr-sync.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/multi-gitter-pr-sync.yml b/.github/workflows/multi-gitter-pr-sync.yml index f51b747b..6d3e6e04 100644 --- a/.github/workflows/multi-gitter-pr-sync.yml +++ b/.github/workflows/multi-gitter-pr-sync.yml @@ -50,4 +50,4 @@ jobs: GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} run: | chmod +x .github/scripts/update-version.sh - multi-gitter run .github/scripts/update-version.sh --token "$GITEA_TOKEN" --base-branch "$BASE_BRANCH" --branch "$HEAD_BRANCH" --author-name "$PR_AUTHOR" --author-email "$PR_AUTHOR_EMAIL" --pr-title "Sync with changes from the $HEAD_BRANCH branch of common-lib" --config .github/config/multi-gitter-config + multi-gitter run .github/scripts/update-version.sh --token "$GITEA_TOKEN" --base-branch "$BASE_BRANCH" --branch "$HEAD_BRANCH" --author-name "$PR_AUTHOR" --author-email "$PR_AUTHOR_EMAIL" --pr-title "fix: sync with changes from the $HEAD_BRANCH branch of common-lib" --config .github/config/multi-gitter-config From 19250d5accdec110529592f9516b33c1d2fd71c8 Mon Sep 17 00:00:00 2001 From: Yashasvi17 <155513200+YashasviDevtron@users.noreply.github.com> Date: Fri, 20 Sep 2024 13:38:52 +0530 Subject: [PATCH 09/14] Update multi-gitter-pr-sync.yml --- .github/workflows/multi-gitter-pr-sync.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/multi-gitter-pr-sync.yml b/.github/workflows/multi-gitter-pr-sync.yml index 6d3e6e04..20d54921 100644 --- a/.github/workflows/multi-gitter-pr-sync.yml +++ b/.github/workflows/multi-gitter-pr-sync.yml @@ -50,4 +50,4 @@ jobs: GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} run: | chmod +x .github/scripts/update-version.sh - multi-gitter run .github/scripts/update-version.sh --token "$GITEA_TOKEN" --base-branch "$BASE_BRANCH" --branch "$HEAD_BRANCH" --author-name "$PR_AUTHOR" --author-email "$PR_AUTHOR_EMAIL" --pr-title "fix: sync with changes from the $HEAD_BRANCH branch of common-lib" --config .github/config/multi-gitter-config + multi-gitter run .github/scripts/update-version.sh --token "$GITEA_TOKEN" --base-branch "$BASE_BRANCH" --branch "$HEAD_BRANCH" --author-name "$PR_AUTHOR" --author-email "$PR_AUTHOR_EMAIL" --pr-title "fix: sync with changes from $HEAD_BRANCH of common-lib" --config .github/config/multi-gitter-config From 6ecac6b5b70c15672c9b3d988197778ea84a4a5b Mon Sep 17 00:00:00 2001 From: Yashasvi17 <155513200+YashasviDevtron@users.noreply.github.com> Date: Fri, 20 Sep 2024 13:55:45 +0530 Subject: [PATCH 10/14] Update multi-gitter-pr-sync.yml --- .github/workflows/multi-gitter-pr-sync.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/multi-gitter-pr-sync.yml b/.github/workflows/multi-gitter-pr-sync.yml index 20d54921..ffa1b53d 100644 --- a/.github/workflows/multi-gitter-pr-sync.yml +++ b/.github/workflows/multi-gitter-pr-sync.yml @@ -20,7 +20,7 @@ jobs: go-version: '>=1.17.0' - name: Install multi-gitter - run: curl -s https://raw.githubusercontent.com/lindell/multi-gitter/master/install.sh | sh + run: curl -s https://raw.githubusercontent.com/lindell/multi-gitter/b62a2dfda0ed266502f7c71f7ce79f8fd9c26bf6/install.sh | sh - name: Get PR details env: From 27eb6281539e74898ee0bad1a5d120c7e1a6bdcd Mon Sep 17 00:00:00 2001 From: prakhar katiyar <39842461+prkhrkat@users.noreply.github.com> Date: Fri, 20 Sep 2024 15:16:03 +0530 Subject: [PATCH 11/14] Update multi-gitter-config --- .github/config/multi-gitter-config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/config/multi-gitter-config b/.github/config/multi-gitter-config index 5c12b35b..a7eaefec 100644 --- a/.github/config/multi-gitter-config +++ b/.github/config/multi-gitter-config @@ -112,13 +112,13 @@ repo: - devtron-labs/lens - devtron-labs/ci-runner-enterprise - devtron-labs/git-sensor-enterprise - - chart-sync-enterprise + - devtron-labs/chart-sync-enterprise - devtron-labs/devtron - devtron-labs/kubelink - devtron-labs/image-scanner - devtron-labs/ci-runner - devtron-labs/git-sensor - - chart-sync + - devtron-labs/chart-sync From e45425de1647f3af20b952350e2302ecee927dce Mon Sep 17 00:00:00 2001 From: Yashasvi17 <155513200+YashasviDevtron@users.noreply.github.com> Date: Fri, 20 Sep 2024 15:52:22 +0530 Subject: [PATCH 12/14] Update multi-gitter-pr-sync.yml --- .github/workflows/multi-gitter-pr-sync.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/multi-gitter-pr-sync.yml b/.github/workflows/multi-gitter-pr-sync.yml index ffa1b53d..eeb09e3b 100644 --- a/.github/workflows/multi-gitter-pr-sync.yml +++ b/.github/workflows/multi-gitter-pr-sync.yml @@ -39,11 +39,11 @@ jobs: - name: Update script with PR details run: | - sed -i 's/VERSION=.*/VERSION=${{ env.COMMIT_SHA }}/' .github/config/multi-gitter-config + sed -i 's/VERSION=.*/VERSION=${{ env.COMMIT_SHA }}/' .github/scripts/update-version.sh sed -i 's/PR_AUTHOR=.*/PR_AUTHOR=${{ env.PR_AUTHOR }}/' .github/config/multi-gitter-config sed -i 's/HEAD_BRANCH=.*/HEAD_BRANCH=${{ env.HEAD_BRANCH }}/' .github/config/multi-gitter-config - sed -i 's/HEAD_BRANCH=.*/HEAD_BRANCH=${{ env.HEAD_BRANCH }}/' .github/scripts/update-version.sh - sed -i 's/BASE_BRANCH=.*/BASE_BRANCH=${{ env.BASE_BRANCH }}/' .github/scripts/update-version.sh + sed -i 's/HEAD_BRANCH=.*/HEAD_BRANCH=${{ env.HEAD_BRANCH }}/' .github/config/multi-gitter-config + sed -i 's/BASE_BRANCH=.*/BASE_BRANCH=${{ env.BASE_BRANCH }}/' .github/config/multi-gitter-config - name: Run multi-gitter env: From 6673867767442069d7f6b0a6a194fd595730cf3d Mon Sep 17 00:00:00 2001 From: Yashasvi17 <155513200+YashasviDevtron@users.noreply.github.com> Date: Fri, 20 Sep 2024 15:53:40 +0530 Subject: [PATCH 13/14] Update update-version.sh --- .github/scripts/update-version.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/update-version.sh b/.github/scripts/update-version.sh index 02ba3610..dbbddbf3 100644 --- a/.github/scripts/update-version.sh +++ b/.github/scripts/update-version.sh @@ -4,9 +4,9 @@ ### Change these values ### MODULE=github.com/devtron-labs/common-lib -VERSION=${VERSION} +VERSION=$VERSION -echo "Commit SHA: ${VERSION}" +echo "Commit SHA: $VERSION" # Stop the script if any command fails set -e From e64d363b380d9fc243e9d4cafcfa1be0b33ab0df Mon Sep 17 00:00:00 2001 From: Yashasvi17 <155513200+YashasviDevtron@users.noreply.github.com> Date: Fri, 20 Sep 2024 16:06:03 +0530 Subject: [PATCH 14/14] Update multi-gitter-pr-sync.yml --- .github/workflows/multi-gitter-pr-sync.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/multi-gitter-pr-sync.yml b/.github/workflows/multi-gitter-pr-sync.yml index eeb09e3b..03d6d0e4 100644 --- a/.github/workflows/multi-gitter-pr-sync.yml +++ b/.github/workflows/multi-gitter-pr-sync.yml @@ -40,10 +40,6 @@ jobs: - name: Update script with PR details run: | sed -i 's/VERSION=.*/VERSION=${{ env.COMMIT_SHA }}/' .github/scripts/update-version.sh - sed -i 's/PR_AUTHOR=.*/PR_AUTHOR=${{ env.PR_AUTHOR }}/' .github/config/multi-gitter-config - sed -i 's/HEAD_BRANCH=.*/HEAD_BRANCH=${{ env.HEAD_BRANCH }}/' .github/config/multi-gitter-config - sed -i 's/HEAD_BRANCH=.*/HEAD_BRANCH=${{ env.HEAD_BRANCH }}/' .github/config/multi-gitter-config - sed -i 's/BASE_BRANCH=.*/BASE_BRANCH=${{ env.BASE_BRANCH }}/' .github/config/multi-gitter-config - name: Run multi-gitter env: