From 0b6f11545e16d43322254739ef44253bb9760809 Mon Sep 17 00:00:00 2001 From: Yashasvi17 <155513200+YashasviDevtron@users.noreply.github.com> Date: Thu, 3 Oct 2024 19:23:04 +0530 Subject: [PATCH 1/3] Delete .github/workflow directory --- .github/workflow/multi-gitter-pr-sync.yml | 48 ----------------------- 1 file changed, 48 deletions(-) delete mode 100644 .github/workflow/multi-gitter-pr-sync.yml diff --git a/.github/workflow/multi-gitter-pr-sync.yml b/.github/workflow/multi-gitter-pr-sync.yml deleted file mode 100644 index 97eb3e18..00000000 --- a/.github/workflow/multi-gitter-pr-sync.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: Creating PR using Multi-Gitter - -on: - pull_request: - types: [opened] - branches: - - develop - -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/b62a2dfda0ed266502f7c71f7ce79f8fd9c26bf6/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/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" --pr-title "fix: sync with changes from $HEAD_BRANCH of common-lib" --config .github/config/multi-gitter-config From ffb77f5d6e42902d57a15dc6f3d5fc842cd00e6c Mon Sep 17 00:00:00 2001 From: Yashasvi17 <155513200+YashasviDevtron@users.noreply.github.com> Date: Thu, 3 Oct 2024 19:23:25 +0530 Subject: [PATCH 2/3] Update multi-gitter-pr-sync.yml --- .github/workflows/multi-gitter-pr-sync.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/multi-gitter-pr-sync.yml b/.github/workflows/multi-gitter-pr-sync.yml index 03d6d0e4..97eb3e18 100644 --- a/.github/workflows/multi-gitter-pr-sync.yml +++ b/.github/workflows/multi-gitter-pr-sync.yml @@ -5,7 +5,6 @@ on: types: [opened] branches: - develop - - main jobs: update-dependencies: From 3dc6451f220a9fb1f53606e0a95b2bc531131dbb Mon Sep 17 00:00:00 2001 From: Yashasvi17 <155513200+YashasviDevtron@users.noreply.github.com> Date: Wed, 16 Oct 2024 14:01:50 +0530 Subject: [PATCH 3/3] Update multi-gitter-pr-sync.yml --- .github/workflows/multi-gitter-pr-sync.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/multi-gitter-pr-sync.yml b/.github/workflows/multi-gitter-pr-sync.yml index 97eb3e18..03d6d0e4 100644 --- a/.github/workflows/multi-gitter-pr-sync.yml +++ b/.github/workflows/multi-gitter-pr-sync.yml @@ -5,6 +5,7 @@ on: types: [opened] branches: - develop + - main jobs: update-dependencies: