From 21ff162a230ccdd133cc48a39ee34020afbd2341 Mon Sep 17 00:00:00 2001 From: Saket Chaudhary Date: Fri, 3 May 2024 18:17:56 +0530 Subject: [PATCH] test release --- .github/workflows/publish-extension.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-extension.yml b/.github/workflows/publish-extension.yml index 829e702..3420d96 100644 --- a/.github/workflows/publish-extension.yml +++ b/.github/workflows/publish-extension.yml @@ -29,4 +29,21 @@ jobs: AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} run: | cd extension - ./publish-layer.sh + output=$(./publish-layer.sh) + echo "$output" + echo "LAYER_ARN=$(echo $output | grep 'ARN' | cut -d' ' -f2)" >> $GITHUB_ENV + echo "REGION=$(echo $output | grep 'Region' | cut -d' ' -f2)" >> $GITHUB_ENV + - name: Create Release + if: steps.extension-check-tag.outputs.match == 'true' + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ env.TAG_NAME }} + release_name: Release for ${{ env.TAG_NAME }} + body: | + Release generated by GitHub Actions run [${{ github.run_id }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}). + Layer ARN: ${{ env.LAYER_ARN }} + Region: ${{ env.REGION }} + draft: false + prerelease: false