From e2e6c43c9bdfc2da268a6e9ac6b4e5bf0f094052 Mon Sep 17 00:00:00 2001 From: Venkateswarlu Marthula Date: Wed, 6 Aug 2025 14:49:53 +0530 Subject: [PATCH 1/2] feat: added new file under workflow folder --- .github/workflows/Create-Release.yml | 66 ++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 .github/workflows/Create-Release.yml diff --git a/.github/workflows/Create-Release.yml b/.github/workflows/Create-Release.yml new file mode 100644 index 00000000..e72028d9 --- /dev/null +++ b/.github/workflows/Create-Release.yml @@ -0,0 +1,66 @@ +on: + push: + branches: + - ve-pipeline-changes + #- main + +permissions: + contents: write + pull-requests: write + +name: Create-Release + +jobs: + create-release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + ref: ${{ github.event.workflow_run.head_sha }} + + - uses: codfish/semantic-release-action@v3 + id: semantic + with: + tag-format: 'v${version}' + additional-packages: | + ['conventional-changelog-conventionalcommits@7'] + plugins: | + [ + [ + "@semantic-release/commit-analyzer", + { + "preset": "conventionalcommits" + } + ], + [ + "@semantic-release/release-notes-generator", + { + "preset": "conventionalcommits", + "presetConfig": { + "types": [ + { type: 'feat', section: 'Features', hidden: false }, + { type: 'fix', section: 'Bug Fixes', hidden: false }, + { type: 'perf', section: 'Performance Improvements', hidden: false }, + { type: 'revert', section: 'Reverts', hidden: false }, + { type: 'docs', section: 'Other Updates', hidden: false }, + { type: 'style', section: 'Other Updates', hidden: false }, + { type: 'chore', section: 'Other Updates', hidden: false }, + { type: 'refactor', section: 'Other Updates', hidden: false }, + { type: 'test', section: 'Other Updates', hidden: false }, + { type: 'build', section: 'Other Updates', hidden: false }, + { type: 'ci', section: 'Other Updates', hidden: false } + ] + } + } + ], + '@semantic-release/github' + ] + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - run: echo ${{ steps.semantic.outputs.release-version }} + + - run: echo "$OUTPUTS" + env: + OUTPUTS: ${{ toJson(steps.semantic.outputs) }} + \ No newline at end of file From ee2642d23293bd609b7bf513a527dbbde2e5cb69 Mon Sep 17 00:00:00 2001 From: Vemarthula-Microsoft Date: Wed, 6 Aug 2025 14:57:06 +0530 Subject: [PATCH 2/2] Update Create-Release.yml --- .github/workflows/Create-Release.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/Create-Release.yml b/.github/workflows/Create-Release.yml index e72028d9..8ddc259a 100644 --- a/.github/workflows/Create-Release.yml +++ b/.github/workflows/Create-Release.yml @@ -1,8 +1,7 @@ on: push: branches: - - ve-pipeline-changes - #- main + - main permissions: contents: write @@ -63,4 +62,4 @@ jobs: - run: echo "$OUTPUTS" env: OUTPUTS: ${{ toJson(steps.semantic.outputs) }} - \ No newline at end of file +