From 0495698cdf660adb7990b8985577be6da3951c11 Mon Sep 17 00:00:00 2001 From: Anna Shcherbak Date: Wed, 17 Apr 2024 20:53:19 +0300 Subject: [PATCH 1/2] upd: update ci to support releases instead of CHANGELOG.md --- .github/workflows/changelog.yml | 28 ++++++++++------------------ CHANGELOG.md | 15 --------------- 2 files changed, 10 insertions(+), 33 deletions(-) delete mode 100644 CHANGELOG.md diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 17ae0b1e..102dfc8c 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -1,22 +1,18 @@ name: Changelog - -# Controls when the workflow will run on: - # Run this workflow manually from the Actions tab - workflow_dispatch: - -permissions: - contents: 'write' - + push: + tags: + - "v*.*" jobs: build: name: Create Release runs-on: ubuntu-latest + # if: startsWith(github.ref, 'refs/tags/v') steps: - name: Checkout code - uses: actions/checkout@v3 - + uses: actions/checkout@v4 + - name: Checkout action run: git clone -b main "https://git:$PROJECT_TOKEN@git.epam.com/epmc-sec/cloudlab/cloud_custodian/ecc-actions.git" ecc-actions env: @@ -32,12 +28,8 @@ jobs: includeInvalidCommits: true excludeTypes: "" - - name: Commit CHANGELOG.md - uses: ./ecc-actions/git-auto-commit-action + - name: Release + uses: softprops/action-gh-release@v2 with: - branch: changelog - create_branch: true - commit_message: 'skip: update CHANGELOG.md for ${{ github.ref_name }}' - file_pattern: CHANGELOG.md - reverseOrder: true - excludeTypes: skip + name: Release ${{ github.ref_name }} + body: ${{ steps.changelog.outputs.changes }} diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 65603d8a..00000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,15 +0,0 @@ -# Changelog - -## [v1.1] - 2024-01-26 -### :wrench: Updates -- [`5df0de6`](https://github.com/epam/ecc-azure-rulepack/commit/5df0de6020fc4dfebead813d862c02cfa6d3bb2c) - added 'comment' field -- [`9c33035`](https://github.com/epam/ecc-azure-rulepack/commit/9c330352152322060163e00c52a07c3f696da834) - updated comment field for all policies - - -## [v1.0] - 2023-17-08 -### :open_file_folder: Initial version - - -[v1.0]: https://github.com/epam/ecc-gcp-rulepack/compare/Init...v1.0 - -[v1.1]: https://github.com/epam/ecc-azure-rulepack/compare/v1.0...v1.1 \ No newline at end of file From beb5a73426b5c4d2781fd8a60b3e9f47db051f7e Mon Sep 17 00:00:00 2001 From: Anna Shcherbak Date: Wed, 17 Apr 2024 20:54:05 +0300 Subject: [PATCH 2/2] skip: prep for v2.0 release --- version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version b/version index 9f8e9b69..84666475 100644 --- a/version +++ b/version @@ -1 +1 @@ -1.0 \ No newline at end of file +v2.0 \ No newline at end of file