From ebe518567f5dd1897bc518507ed2dbbd8c08091d Mon Sep 17 00:00:00 2001 From: Rafal Korytkowski Date: Fri, 23 May 2025 09:59:31 +0200 Subject: [PATCH 1/2] Create release.yml --- .github/workflows/release.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..2de208dd --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,34 @@ +on: + push: + tags: + - '*' # Create release for every new tag + +name: Create Release + +jobs: + build: + name: Create Release + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Create Release Notes + uses: johnyherangi/create-release-notes@main + id: create-release-notes + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + head-ref: ${{ github.ref }} + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: ${{ github.ref }} + body: | + ## What's Changed + ${{ steps.create-release-notes.outputs.release-notes }} + draft: false + prerelease: false From abe4f5341a7267c7de3118acf88223519f35fdc3 Mon Sep 17 00:00:00 2001 From: Rafal Korytkowski Date: Fri, 23 May 2025 10:50:37 +0200 Subject: [PATCH 2/2] Update release.yml --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2de208dd..7fb14bb1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,7 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - name: Create Release Notes - uses: johnyherangi/create-release-notes@main + uses: openmrs/openmrs-contrib-create-release-notes@v1.0.3 id: create-release-notes env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}