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]
  • Loading branch information
davseve committed Oct 24, 2023
1 parent a5cbedd commit 3ab427c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/latest-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ on:
types: [closed]
branches:
- main
workflow_dispatch:
branches:
- main

permissions:
contents: write
Expand All @@ -24,7 +21,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' )
if: github.event.pull_request.merged == true && github.base_ref == 'main' && !contains(github.event.pull_request.labels.*.name, 'skip release' )
runs-on: ubuntu-22.04
steps:
- name: checkout branch
Expand Down Expand Up @@ -69,13 +66,16 @@ jobs:
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}
BUILD_SCRIPT_PATH: "./.github/scripts/build-zip.sh"
- name: Create GitHub release
uses: softprops/action-gh-release@v1
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.MAINTAIN_TOKEN }}
with:
tag_name: ${{ env.PACKAGE_VERSION }}
target_commitish: ${{ env.CLEAN_REF }}
files: elementor-*.zip
release_name: "${{ env.PACKAGE_VERSION }}: ${{ github.event.pull_request.title }}"
body: "Automated release for ${{ env.PACKAGE_VERSION }}"
prerelease: ${{ env.PRERELEASE }}
draft: false
prerelease: false
- 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 3ab427c

Please sign in to comment.