Skip to content

Commit 7334872

Browse files
authored
Shmuelarditi patch 1 (#324)
* Update README.md * Update auto-dispatch.yaml
1 parent ec684e0 commit 7334872

File tree

2 files changed

+4
-26
lines changed

2 files changed

+4
-26
lines changed

.github/workflows/auto-dispatch.yaml

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,9 @@ on:
88

99
jobs:
1010
release-dispatch:
11-
if: (github.event_name == 'push') || (github.event_name == 'pull_request' && github.event.pull_request.merged == true && github.base_ref == 'master')
11+
if: github.event_name == 'push' || (github.event.pull_request.merged == true && github.base_ref == 'master')
1212
runs-on: ubuntu-latest
1313
steps:
14-
- name: Determine version level
15-
id: level
16-
run: |
17-
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
18-
# Extract labels from merged PR
19-
LABELS="${{ join(github.event.pull_request.labels.*.name, ',') }}"
20-
echo "PR Labels: $LABELS"
21-
22-
if [[ "$LABELS" == *"major"* ]]; then
23-
echo "level=major" >> $GITHUB_OUTPUT
24-
echo "Using PR label: major"
25-
elif [[ "$LABELS" == *"minor"* ]]; then
26-
echo "level=minor" >> $GITHUB_OUTPUT
27-
echo "Using PR label: minor"
28-
else
29-
echo "level=patch" >> $GITHUB_OUTPUT
30-
echo "Using PR label default: patch"
31-
fi
32-
else
33-
# Push to master - default to patch
34-
echo "level=patch" >> $GITHUB_OUTPUT
35-
echo "Using push default: patch"
36-
fi
37-
3814
- name: Send dispatch
3915
uses: peter-evans/repository-dispatch@v3
4016
with:
@@ -43,7 +19,7 @@ jobs:
4319
event-type: release
4420
client-payload: |
4521
{
46-
"level": "${{ steps.level.outputs.level }}",
22+
"level": "patch",
4723
"source": "${{ github.event_name }}",
4824
"ref": "${{ github.ref }}",
4925
"sha": "${{ github.sha }}",

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ Check out our developer resources:
1313
* [Elementor Developers](https://developers.elementor.com/)
1414
* [Elementor Developers Blog](https://developers.elementor.com/blog/)
1515
* [Elementor Developers Docs](https://developers.elementor.com/docs/)
16+
17+

0 commit comments

Comments
 (0)