From 45dc70da2396faaecd39d38521545113c03620a3 Mon Sep 17 00:00:00 2001 From: Davids Seveloff <94905340+davseve@users.noreply.github.com> Date: Wed, 25 Oct 2023 13:50:35 +0300 Subject: [PATCH] Internal: Core - Add writing contents permissions to automated continues release [ED-12498] (#24096) --- .github/workflows/latest-release.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/latest-release.yml b/.github/workflows/latest-release.yml index 846dd9983a8..b239e39cb9e 100644 --- a/.github/workflows/latest-release.yml +++ b/.github/workflows/latest-release.yml @@ -22,6 +22,7 @@ concurrency: jobs: latest_release: if: github.event.pull_request.merged == true && github.base_ref == 'main' && !contains(github.event.pull_request.labels.*.name, 'skip release' ) + permissions: write-all runs-on: ubuntu-22.04 steps: - name: checkout branch @@ -66,16 +67,16 @@ jobs: PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }} BUILD_SCRIPT_PATH: "./.github/scripts/build-zip.sh" - name: Create GitHub release - id: create_release - uses: actions/create-release@latest + uses: softprops/action-gh-release@v1 env: - GITHUB_TOKEN: ${{ secrets.MAINTAIN_TOKEN }} + GITHUB_REPOSITORY: ${{ github.repository }} with: tag_name: ${{ env.PACKAGE_VERSION }} - release_name: "${{ env.PACKAGE_VERSION }}: ${{ github.event.pull_request.title }}" + target_commitish: ${{ env.CLEAN_REF }} + files: elementor-*.zip body: "Automated release for ${{ env.PACKAGE_VERSION }}" - draft: false - prerelease: false + prerelease: ${{ env.PRERELEASE }} + token: ${{ secrets.GITHUB_TOKEN }} - name: Post To Slack Created Latest auto Release if: ${{ github.event.inputs.pre_release }} == false uses: ./.github/workflows/post-to-slack