Skip to content

Commit

Permalink
Merge pull request #35 from zendesk/ebarbulescu/tweak-workflow
Browse files Browse the repository at this point in the history
remove the release type block and add for master the trigger
  • Loading branch information
elenabarbulescu authored Aug 29, 2024
2 parents 16c2cb8 + 727d0bf commit 40a799d
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Github Release

on:
pull_request:
types: [closed]
push:
branches:
- master
workflow_dispatch:

jobs:
Expand All @@ -11,19 +12,6 @@ jobs:
steps:
# Check out the `master` branch
- uses: zendesk/checkout@v4
# Get the release version type
- name: Get release version type
id: get_release_data
env:
DEFAULT_VERSION_TYPE: minor
LABELS_JSON: ${{ toJson(github.event.pull_request.labels.*.name) }}
run: |
if [ "$LABELS_JSON" = "[]" ]; then
_TYPE=${DEFAULT_VERSION_TYPE}
else
_TYPE=$(echo $LABELS_JSON | jq -r 'map(select(. | startswith("release."))) | first | .[8:]')
fi
echo "type=${_TYPE}" >> $GITHUB_OUTPUT
# Compute the next semantic version
- name: Compute release tag
id: compute_tag
Expand Down

0 comments on commit 40a799d

Please sign in to comment.