From daab6e8ead31e85ba6fb46cea0dafcf835550a15 Mon Sep 17 00:00:00 2001 From: Anirban Kar Date: Fri, 13 Dec 2024 14:04:58 +0530 Subject: [PATCH 01/16] added verioning system and stable branch --- .github/workflows/update-stable.yml | 154 ++++++++++++++++++++++++++++ package.json | 1 + 2 files changed, 155 insertions(+) create mode 100644 .github/workflows/update-stable.yml diff --git a/.github/workflows/update-stable.yml b/.github/workflows/update-stable.yml new file mode 100644 index 0000000..6a21d5b --- /dev/null +++ b/.github/workflows/update-stable.yml @@ -0,0 +1,154 @@ +name: Update Stable Branch + +on: + pull_request: + types: [closed] + branches: + - main + +jobs: + update-stable: + if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'stable-release') + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Configure Git + run: | + git config --global user.name 'GitHub Action' + git config --global user.email 'action@github.com' + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Determine Version Bump + id: version_bump + run: | + if contains(github.event.pull_request.labels.*.name, 'major') + echo "bump=major" >> $GITHUB_OUTPUT + elif contains(github.event.pull_request.labels.*.name, 'minor') + echo "bump=minor" >> $GITHUB_OUTPUT + else + echo "bump=patch" >> $GITHUB_OUTPUT + fi + + - name: Get Current Version + id: current_version + run: | + CURRENT_VERSION=$(node -p "require('./package.json').version") + echo "version=$CURRENT_VERSION" >> $GITHUB_OUTPUT + + - name: Bump Version + id: bump_version + run: | + npm install -g semver + NEW_VERSION=$(semver -i ${{ steps.version_bump.outputs.bump }} ${{ steps.current_version.outputs.version }}) + echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT + + - name: Update Package.json + run: | + NEW_VERSION=${{ steps.bump_version.outputs.new_version }} + npm version $NEW_VERSION --no-git-tag-version + + - name: Generate Changelog + id: changelog + run: | + # Get the latest tag + LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "") + + if [ -z "$LATEST_TAG" ]; then + # If no tags exist, get all commits + echo "### 🎉 First Release" >> changelog.md + echo "" >> changelog.md + else + # Get commits since last tag + echo "### 🔄 Changes since $LATEST_TAG" >> changelog.md + echo "" >> changelog.md + fi + + # Function to extract conventional commit type + get_commit_type() { + if [[ $1 =~ ^feat: ]]; then echo "✨ Features"; + elif [[ $1 =~ ^fix: ]]; then echo "🐛 Bug Fixes"; + elif [[ $1 =~ ^docs: ]]; then echo "📚 Documentation"; + elif [[ $1 =~ ^style: ]]; then echo "💎 Styles"; + elif [[ $1 =~ ^refactor: ]]; then echo "♻️ Code Refactoring"; + elif [[ $1 =~ ^perf: ]]; then echo "⚡️ Performance Improvements"; + elif [[ $1 =~ ^test: ]]; then echo "✅ Tests"; + elif [[ $1 =~ ^build: ]]; then echo "🛠️ Build System"; + elif [[ $1 =~ ^ci: ]]; then echo "⚙️ CI"; + elif [[ $1 =~ ^chore: ]]; then echo "🔧 Chores"; + else echo "🔍 Other Changes"; + fi + } + + # Generate categorized changelog + CATEGORIES=() + declare -A COMMITS_BY_CATEGORY + + # Get commits since last tag or all commits if no tag exists + if [ -z "$LATEST_TAG" ]; then + git log --pretty=format:"%s" > temp_commits.txt + else + git log ${LATEST_TAG}..HEAD --pretty=format:"%s" > temp_commits.txt + fi + + while IFS= read -r commit; do + CATEGORY=$(get_commit_type "$commit") + if [[ ! " ${CATEGORIES[@]} " =~ " ${CATEGORY} " ]]; then + CATEGORIES+=("$CATEGORY") + fi + COMMITS_BY_CATEGORY["$CATEGORY"]+="- ${commit#*: }"$'\n' + done < temp_commits.txt + + # Write categorized commits to changelog + for category in "${CATEGORIES[@]}"; do + if [ -n "${COMMITS_BY_CATEGORY[$category]}" ]; then + echo "#### $category" >> changelog.md + echo "" >> changelog.md + echo "${COMMITS_BY_CATEGORY[$category]}" >> changelog.md + echo "" >> changelog.md + fi + done + + rm temp_commits.txt + + # Save changelog content for the release + CHANGELOG_CONTENT=$(cat changelog.md) + echo "content<> $GITHUB_OUTPUT + echo "$CHANGELOG_CONTENT" >> $GITHUB_OUTPUT + echo "EOF" >> $GITHUB_OUTPUT + + - name: Commit Version Update + run: | + git add package.json package-lock.json + git commit -m "chore: bump version to ${{ steps.bump_version.outputs.new_version }}" + git push origin main + + - name: Update Stable Branch + run: | + git checkout stable + git merge main + git push origin stable + + - name: Create and Push Tag + run: | + VERSION="v${{ steps.bump_version.outputs.new_version }}" + git tag -a "$VERSION" -m "Release $VERSION" + git push origin "$VERSION" + + - name: Create GitHub Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + VERSION="v${{ steps.bump_version.outputs.new_version }}" + + # Create release with generated changelog + gh release create "$VERSION" \ + --title "Release $VERSION" \ + --notes "${{ steps.changelog.outputs.content }}" \ No newline at end of file diff --git a/package.json b/package.json index 547b69c..a7329e3 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "license": "MIT", "sideEffects": false, "type": "module", + "version": "0.0.0", "scripts": { "deploy": "npm run build && wrangler pages deploy", "build": "remix vite:build", From ddf43191827c4799f2f04425d7c1053150e810ce Mon Sep 17 00:00:00 2001 From: Anirban Kar Date: Fri, 13 Dec 2024 14:08:44 +0530 Subject: [PATCH 02/16] imporoved version for versioning system --- .github/workflows/update-stable.yml | 76 +++++++++++++++++------------ 1 file changed, 46 insertions(+), 30 deletions(-) diff --git a/.github/workflows/update-stable.yml b/.github/workflows/update-stable.yml index 6a21d5b..e8bace1 100644 --- a/.github/workflows/update-stable.yml +++ b/.github/workflows/update-stable.yml @@ -10,28 +10,33 @@ jobs: update-stable: if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'stable-release') runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: read steps: - uses: actions/checkout@v4 with: fetch-depth: 0 + token: ${{ secrets.GITHUB_TOKEN }} - name: Configure Git run: | - git config --global user.name 'GitHub Action' - git config --global user.email 'action@github.com' + git config --global user.name 'github-actions[bot]' + git config --global user.email 'github-actions[bot]@users.noreply.github.com' - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '20' + cache: 'npm' - name: Determine Version Bump id: version_bump run: | - if contains(github.event.pull_request.labels.*.name, 'major') + if [[ "${{ contains(github.event.pull_request.labels.*.name, 'major') }}" == "true" ]]; then echo "bump=major" >> $GITHUB_OUTPUT - elif contains(github.event.pull_request.labels.*.name, 'minor') + elif [[ "${{ contains(github.event.pull_request.labels.*.name, 'minor') }}" == "true" ]]; then echo "bump=minor" >> $GITHUB_OUTPUT else echo "bump=patch" >> $GITHUB_OUTPUT @@ -43,17 +48,19 @@ jobs: CURRENT_VERSION=$(node -p "require('./package.json').version") echo "version=$CURRENT_VERSION" >> $GITHUB_OUTPUT + - name: Install semver + run: npm install -g semver + - name: Bump Version id: bump_version run: | - npm install -g semver NEW_VERSION=$(semver -i ${{ steps.version_bump.outputs.bump }} ${{ steps.current_version.outputs.version }}) echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT - name: Update Package.json run: | NEW_VERSION=${{ steps.bump_version.outputs.new_version }} - npm version $NEW_VERSION --no-git-tag-version + npm version $NEW_VERSION --no-git-tag-version --allow-same-version - name: Generate Changelog id: changelog @@ -61,19 +68,23 @@ jobs: # Get the latest tag LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "") + # Start changelog file + echo "# Release v${{ steps.bump_version.outputs.new_version }}" > changelog.md + echo "" >> changelog.md + if [ -z "$LATEST_TAG" ]; then - # If no tags exist, get all commits echo "### 🎉 First Release" >> changelog.md echo "" >> changelog.md + COMPARE_BASE="$(git rev-list --max-parents=0 HEAD)" else - # Get commits since last tag echo "### 🔄 Changes since $LATEST_TAG" >> changelog.md echo "" >> changelog.md + COMPARE_BASE="$LATEST_TAG" fi # Function to extract conventional commit type get_commit_type() { - if [[ $1 =~ ^feat: ]]; then echo "✨ Features"; + if [[ $1 =~ ^feat:|^feature: ]]; then echo "✨ Features"; elif [[ $1 =~ ^fix: ]]; then echo "🐛 Bug Fixes"; elif [[ $1 =~ ^docs: ]]; then echo "📚 Documentation"; elif [[ $1 =~ ^style: ]]; then echo "💎 Styles"; @@ -88,26 +99,28 @@ jobs: } # Generate categorized changelog - CATEGORIES=() + declare -A CATEGORIES declare -A COMMITS_BY_CATEGORY # Get commits since last tag or all commits if no tag exists - if [ -z "$LATEST_TAG" ]; then - git log --pretty=format:"%s" > temp_commits.txt - else - git log ${LATEST_TAG}..HEAD --pretty=format:"%s" > temp_commits.txt - fi - - while IFS= read -r commit; do - CATEGORY=$(get_commit_type "$commit") - if [[ ! " ${CATEGORIES[@]} " =~ " ${CATEGORY} " ]]; then - CATEGORIES+=("$CATEGORY") + while IFS= read -r commit_line; do + HASH=$(echo "$commit_line" | cut -d'|' -f1) + MSG=$(echo "$commit_line" | cut -d'|' -f2) + PR_NUM=$(echo "$commit_line" | cut -d'|' -f3) + + CATEGORY=$(get_commit_type "$MSG") + CATEGORIES["$CATEGORY"]=1 + + # Format commit message with PR link if available + if [ -n "$PR_NUM" ]; then + COMMITS_BY_CATEGORY["$CATEGORY"]+="- ${MSG#*: } ([#$PR_NUM](${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/pull/$PR_NUM))"$'\n' + else + COMMITS_BY_CATEGORY["$CATEGORY"]+="- ${MSG#*: }"$'\n' fi - COMMITS_BY_CATEGORY["$CATEGORY"]+="- ${commit#*: }"$'\n' - done < temp_commits.txt + done < <(git log "${COMPARE_BASE}..HEAD" --pretty=format:"%H|%s|%(trailers:key=PR-Number,valueonly)" --reverse) # Write categorized commits to changelog - for category in "${CATEGORIES[@]}"; do + for category in "✨ Features" "🐛 Bug Fixes" "📚 Documentation" "💎 Styles" "♻️ Code Refactoring" "⚡️ Performance Improvements" "✅ Tests" "🛠️ Build System" "⚙️ CI" "🔧 Chores" "🔍 Other Changes"; do if [ -n "${COMMITS_BY_CATEGORY[$category]}" ]; then echo "#### $category" >> changelog.md echo "" >> changelog.md @@ -116,7 +129,10 @@ jobs: fi done - rm temp_commits.txt + # Add compare link if not first release + if [ -n "$LATEST_TAG" ]; then + echo "**Full Changelog**: [\`$LATEST_TAG..v${{ steps.bump_version.outputs.new_version }}\`](${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/compare/$LATEST_TAG...v${{ steps.bump_version.outputs.new_version }})" >> changelog.md + fi # Save changelog content for the release CHANGELOG_CONTENT=$(cat changelog.md) @@ -132,10 +148,11 @@ jobs: - name: Update Stable Branch run: | - git checkout stable - git merge main + # Ensure stable branch exists + git checkout stable 2>/dev/null || git checkout -b stable + git merge main --no-ff -m "chore: merge main into stable for version ${{ steps.bump_version.outputs.new_version }}" git push origin stable - + - name: Create and Push Tag run: | VERSION="v${{ steps.bump_version.outputs.new_version }}" @@ -147,8 +164,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | VERSION="v${{ steps.bump_version.outputs.new_version }}" - - # Create release with generated changelog gh release create "$VERSION" \ --title "Release $VERSION" \ - --notes "${{ steps.changelog.outputs.content }}" \ No newline at end of file + --notes "${{ steps.changelog.outputs.content }}" \ + --target stable \ No newline at end of file From bb3bc2a370645cd45d124b1d5011db47bdc24e24 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 13 Dec 2024 08:48:04 +0000 Subject: [PATCH 03/16] chore: update commit hash to b0c2f69dca041736f3dd7a8d48df3b5c44fe0948 --- app/commit.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/commit.json b/app/commit.json index 64e78b6..b3dc582 100644 --- a/app/commit.json +++ b/app/commit.json @@ -1 +1 @@ -{ "commit": "4b36601061652ec2ec3cb1f1d5c7cc5649690bbb" } +{ "commit": "b0c2f69dca041736f3dd7a8d48df3b5c44fe0948" } From c7a94b6edbbe9f9890d508a88c976fe581fe9255 Mon Sep 17 00:00:00 2001 From: Anirban Kar Date: Fri, 13 Dec 2024 14:23:04 +0530 Subject: [PATCH 04/16] updated flow to use pnpm --- .github/workflows/update-stable.yml | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update-stable.yml b/.github/workflows/update-stable.yml index e8bace1..029c350 100644 --- a/.github/workflows/update-stable.yml +++ b/.github/workflows/update-stable.yml @@ -29,7 +29,26 @@ jobs: uses: actions/setup-node@v4 with: node-version: '20' - cache: 'npm' + + - name: Install pnpm + uses: pnpm/action-setup@v2 + with: + version: latest + run_install: false + + - name: Get pnpm store directory + id: pnpm-cache + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT + + - name: Setup pnpm cache + uses: actions/cache@v4 + with: + path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- - name: Determine Version Bump id: version_bump @@ -49,7 +68,7 @@ jobs: echo "version=$CURRENT_VERSION" >> $GITHUB_OUTPUT - name: Install semver - run: npm install -g semver + run: pnpm add -g semver - name: Bump Version id: bump_version @@ -60,7 +79,7 @@ jobs: - name: Update Package.json run: | NEW_VERSION=${{ steps.bump_version.outputs.new_version }} - npm version $NEW_VERSION --no-git-tag-version --allow-same-version + pnpm version $NEW_VERSION --no-git-tag-version --allow-same-version - name: Generate Changelog id: changelog @@ -142,7 +161,7 @@ jobs: - name: Commit Version Update run: | - git add package.json package-lock.json + git add package.json pnpm-lock.yaml git commit -m "chore: bump version to ${{ steps.bump_version.outputs.new_version }}" git push origin main From aba0fc8a459d5ab6af65f2ad21ac5757303aa403 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 13 Dec 2024 08:54:55 +0000 Subject: [PATCH 05/16] chore: update commit hash to fb1ec72b505a0da0f03a6f1282845844afd7d61c --- app/commit.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/commit.json b/app/commit.json index b3dc582..eac7121 100644 --- a/app/commit.json +++ b/app/commit.json @@ -1 +1 @@ -{ "commit": "b0c2f69dca041736f3dd7a8d48df3b5c44fe0948" } +{ "commit": "fb1ec72b505a0da0f03a6f1282845844afd7d61c" } From e8403fe019086c8791a33c1e56eb65f86658cb30 Mon Sep 17 00:00:00 2001 From: Anirban Kar Date: Fri, 13 Dec 2024 14:33:43 +0530 Subject: [PATCH 06/16] fix the creds issue in workflow --- .github/workflows/update-stable.yml | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/.github/workflows/update-stable.yml b/.github/workflows/update-stable.yml index 029c350..51c8645 100644 --- a/.github/workflows/update-stable.yml +++ b/.github/workflows/update-stable.yml @@ -15,11 +15,8 @@ jobs: pull-requests: read steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - token: ${{ secrets.GITHUB_TOKEN }} - + - uses: actions/checkout@v3 + - name: Configure Git run: | git config --global user.name 'github-actions[bot]' @@ -178,12 +175,12 @@ jobs: git tag -a "$VERSION" -m "Release $VERSION" git push origin "$VERSION" - - name: Create GitHub Release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - VERSION="v${{ steps.bump_version.outputs.new_version }}" - gh release create "$VERSION" \ - --title "Release $VERSION" \ - --notes "${{ steps.changelog.outputs.content }}" \ - --target stable \ No newline at end of file + # - name: Create GitHub Release + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # run: | + # VERSION="v${{ steps.bump_version.outputs.new_version }}" + # gh release create "$VERSION" \ + # --title "Release $VERSION" \ + # --notes "${{ steps.changelog.outputs.content }}" \ + # --target stable \ No newline at end of file From c73c264e77a3124488c5e0dea467139bbde15a33 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 13 Dec 2024 09:05:02 +0000 Subject: [PATCH 07/16] chore: update commit hash to 91ec049b72fcf42d807eb0aa1c8caa01611a4e1d --- app/commit.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/commit.json b/app/commit.json index eac7121..16411c4 100644 --- a/app/commit.json +++ b/app/commit.json @@ -1 +1 @@ -{ "commit": "fb1ec72b505a0da0f03a6f1282845844afd7d61c" } +{ "commit": "91ec049b72fcf42d807eb0aa1c8caa01611a4e1d" } From 4961fc28c93e35246df29e50a133a643ef8a9d4a Mon Sep 17 00:00:00 2001 From: Anirban Kar Date: Fri, 13 Dec 2024 14:41:39 +0530 Subject: [PATCH 08/16] chore: fix workflow permission --- .github/workflows/update-stable.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update-stable.yml b/.github/workflows/update-stable.yml index 51c8645..d6d00f6 100644 --- a/.github/workflows/update-stable.yml +++ b/.github/workflows/update-stable.yml @@ -160,20 +160,20 @@ jobs: run: | git add package.json pnpm-lock.yaml git commit -m "chore: bump version to ${{ steps.bump_version.outputs.new_version }}" - git push origin main + git push main - name: Update Stable Branch run: | # Ensure stable branch exists git checkout stable 2>/dev/null || git checkout -b stable git merge main --no-ff -m "chore: merge main into stable for version ${{ steps.bump_version.outputs.new_version }}" - git push origin stable + git push stable - name: Create and Push Tag run: | VERSION="v${{ steps.bump_version.outputs.new_version }}" git tag -a "$VERSION" -m "Release $VERSION" - git push origin "$VERSION" + git push "$VERSION" # - name: Create GitHub Release # env: From 3f706702b2486e72efe1602e710ccef6c387c82a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 13 Dec 2024 09:13:18 +0000 Subject: [PATCH 09/16] chore: update commit hash to cbad04f035f017a4797768c75e180f10920c0e17 --- app/commit.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/commit.json b/app/commit.json index 16411c4..1450397 100644 --- a/app/commit.json +++ b/app/commit.json @@ -1 +1 @@ -{ "commit": "91ec049b72fcf42d807eb0aa1c8caa01611a4e1d" } +{ "commit": "cbad04f035f017a4797768c75e180f10920c0e17" } From 3f56c1b9d68c952e4034fcf919e1a5c8a774614d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 13 Dec 2024 09:56:59 +0000 Subject: [PATCH 10/16] chore: update commit hash to 3f706702b2486e72efe1602e710ccef6c387c82a --- app/commit.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/commit.json b/app/commit.json index 1450397..54cae12 100644 --- a/app/commit.json +++ b/app/commit.json @@ -1 +1 @@ -{ "commit": "cbad04f035f017a4797768c75e180f10920c0e17" } +{ "commit": "3f706702b2486e72efe1602e710ccef6c387c82a" } From 3153c29b97e3b90c09a0f8d9f187996a4329a29a Mon Sep 17 00:00:00 2001 From: Anirban Kar Date: Fri, 13 Dec 2024 15:29:24 +0530 Subject: [PATCH 11/16] chore: versioning workflow fix --- .github/workflows/update-stable.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/update-stable.yml b/.github/workflows/update-stable.yml index d6d00f6..d4d1fbe 100644 --- a/.github/workflows/update-stable.yml +++ b/.github/workflows/update-stable.yml @@ -15,7 +15,10 @@ jobs: pull-requests: read steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ secrets.GITHUB_TOKEN }} - name: Configure Git run: | @@ -158,22 +161,23 @@ jobs: - name: Commit Version Update run: | - git add package.json pnpm-lock.yaml + git pull + git add package.json pnpm-lock.yaml changelog.md git commit -m "chore: bump version to ${{ steps.bump_version.outputs.new_version }}" - git push main + git push - name: Update Stable Branch run: | # Ensure stable branch exists git checkout stable 2>/dev/null || git checkout -b stable git merge main --no-ff -m "chore: merge main into stable for version ${{ steps.bump_version.outputs.new_version }}" - git push stable + git push --set-upstream origin stable - name: Create and Push Tag run: | VERSION="v${{ steps.bump_version.outputs.new_version }}" git tag -a "$VERSION" -m "Release $VERSION" - git push "$VERSION" + git push origin "$VERSION" # - name: Create GitHub Release # env: From 28c0ea878e5632947e3d3843dc88d27212abd0ac Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 13 Dec 2024 10:00:24 +0000 Subject: [PATCH 12/16] chore: update commit hash to 212ab4a020245c96e3d126c9ef5522d4e9db1edf --- app/commit.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/commit.json b/app/commit.json index 54cae12..230f647 100644 --- a/app/commit.json +++ b/app/commit.json @@ -1 +1 @@ -{ "commit": "3f706702b2486e72efe1602e710ccef6c387c82a" } +{ "commit": "212ab4a020245c96e3d126c9ef5522d4e9db1edf" } From 6047602e863c3be014add216cdd70474f4ee2a34 Mon Sep 17 00:00:00 2001 From: Anirban Kar Date: Fri, 13 Dec 2024 15:40:47 +0530 Subject: [PATCH 13/16] updated workflow --- .github/workflows/update-stable.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/update-stable.yml b/.github/workflows/update-stable.yml index d4d1fbe..6273af6 100644 --- a/.github/workflows/update-stable.yml +++ b/.github/workflows/update-stable.yml @@ -15,10 +15,7 @@ jobs: pull-requests: read steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - token: ${{ secrets.GITHUB_TOKEN }} + - uses: actions/checkout@v3 - name: Configure Git run: | From 6015747865861fc88c66b4cb6c5b8b189a861bd4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 13 Dec 2024 10:12:58 +0000 Subject: [PATCH 14/16] chore: update commit hash to 0969aacb3533b94887cd63883b30c7fb91d2a957 --- app/commit.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/commit.json b/app/commit.json index 230f647..d425ea8 100644 --- a/app/commit.json +++ b/app/commit.json @@ -1 +1 @@ -{ "commit": "212ab4a020245c96e3d126c9ef5522d4e9db1edf" } +{ "commit": "0969aacb3533b94887cd63883b30c7fb91d2a957" } From bd71d7e0ca53b9a8b91088ae562241daf53bb337 Mon Sep 17 00:00:00 2001 From: Anirban Kar Date: Fri, 13 Dec 2024 15:48:04 +0530 Subject: [PATCH 15/16] chore: added workflow permission --- .github/workflows/update-stable.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-stable.yml b/.github/workflows/update-stable.yml index 6273af6..5a4d5a9 100644 --- a/.github/workflows/update-stable.yml +++ b/.github/workflows/update-stable.yml @@ -5,7 +5,9 @@ on: types: [closed] branches: - main - +permissions: + contents: write + jobs: update-stable: if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'stable-release') From 8815bf709544383191a9d6f3d6e5c6abbbb0ebf7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 13 Dec 2024 10:19:24 +0000 Subject: [PATCH 16/16] chore: update commit hash to 5c1b4de26a861113ac727b521dfaae07b5f6856b --- app/commit.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/commit.json b/app/commit.json index d425ea8..170e84d 100644 --- a/app/commit.json +++ b/app/commit.json @@ -1 +1 @@ -{ "commit": "0969aacb3533b94887cd63883b30c7fb91d2a957" } +{ "commit": "5c1b4de26a861113ac727b521dfaae07b5f6856b" }