Skip to content
Merged
Show file tree
Hide file tree
Changes from 27 commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
bedefbb
chore(deps): bump path-to-regexp from 1.8.0 to 1.9.0
dependabot[bot] Oct 10, 2024
5dce4a3
chore(deps): bump jsonpath-plus from 9.0.0 to 10.0.0
dependabot[bot] Oct 15, 2024
df58d63
chore(deps-dev): bump @sentry/browser from 7.118.0 to 7.119.1
dependabot[bot] Oct 15, 2024
d20eb5b
chore(deps): bump rollup from 4.21.2 to 4.24.0
dependabot[bot] Oct 15, 2024
5cfe2c6
Merge branch 'main' into dependabot/npm_and_yarn/path-to-regexp-1.9.0
Elessar1802 Oct 21, 2024
e7567d9
Merge branch 'chore/dependabot-updates' into dependabot/npm_and_yarn/…
Elessar1802 Oct 21, 2024
2b4a181
Merge pull request #301 from devtron-labs/dependabot/npm_and_yarn/pat…
Elessar1802 Oct 21, 2024
4a74bfe
Merge pull request #329 from devtron-labs/dependabot/npm_and_yarn/rol…
Elessar1802 Oct 21, 2024
1a6f4b0
Merge pull request #334 from devtron-labs/dependabot/npm_and_yarn/sen…
Elessar1802 Oct 21, 2024
14db365
Merge pull request #352 from devtron-labs/dependabot/npm_and_yarn/jso…
Elessar1802 Oct 21, 2024
9fe6431
chore: dependabot version bumps
Elessar1802 Oct 21, 2024
32cec2d
chore: version bump
Elessar1802 Oct 21, 2024
0819f44
chore: update package-lock.json to latest values
Elessar1802 Oct 21, 2024
7e7b913
Merge branch 'develop' of github.com:devtron-labs/devtron-fe-common-l…
Elessar1802 Oct 21, 2024
33892da
chore: update package-lock.json to latest values
Elessar1802 Oct 21, 2024
5d4e420
chore: version bump
Elessar1802 Oct 21, 2024
df685e6
Merge branch 'develop' of github.com:devtron-labs/devtron-fe-common-l…
Elessar1802 Oct 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/tag-patch-incre.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Increment tag for patch or minor

on:
pull_request:
branches:
- main
types:
- closed # Trigger only when a PR is closed (merged or not)

jobs:
tag:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Create new tag
env:
TOKEN: ${{ secrets.TAG_CREATION_TOKEN_PUBLIC }}
run: |
echo $TOKEN | gh auth login --with-token
latest_tag=$(git tag | sort -V | tail -n 1)
echo "Latest tag: $latest_tag"

# Extract major and minor versions
version=$(echo $latest_tag | cut -d. -f1-2)
# Extract patch version
patch=$(echo $latest_tag | cut -d. -f3)
# Extract minor version
minor=$(echo $latest_tag | cut -d. -f2)
major=$(echo $latest_tag | cut -d. -f1)

# Check if the incoming branch starts with 'release-candidate-'
incoming_branch="${{ github.head_ref }}"
if [[ "$incoming_branch" == release-candidate-* ]]; then
# Increment minor version and reset patch
new_minor=$((minor+1))
new_tag="$major.$new_minor.0"
echo "New tag will be (minor increment): $new_tag"
else
# Increment patch version
new_tag="$version.$((patch+1))"
echo "New tag will be (patch increment): $new_tag"
fi

git config --global user.email "devops@devtron.ai"
git config --global user.name "systemsdt"
git tag $new_tag
git push origin $new_tag
Loading