Skip to content

Commit

Permalink
Internal: Core - Add writing contents permissions to automated contin…
Browse files Browse the repository at this point in the history
…ues release [ED-12498] (elementor#24096)
  • Loading branch information
davseve authored Oct 25, 2023
1 parent 6313a60 commit 45dc70d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/latest-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 45dc70d

Please sign in to comment.