File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,13 @@ name: Delete pre-release when a branch is deleted
55# This workflow action deletes that pre-release when a PR is merged or closed.
66on :
77 pull_request :
8- # types:
9- # - closed
8+ types :
9+ - closed
1010
1111jobs :
1212 delete-pre-release :
1313 name : Delete pre-release if exists
14- # if: github.event.pull_request.merged == true
14+ if : github.event.pull_request.merged == true
1515 runs-on : ubuntu-latest
1616 steps :
1717 - name : Delete pre-release and tag named after branch
3030 REF=$(echo "${BRANCH}" | sed 's/\//-/g')
3131 RELEASE_FOUND=1
3232
33- echo "REF=$REF" # TODO: delete
34- exit 0
35-
3633 # Delete tags matching the pull request branch from forks
3734 if GH_DEBUG=1 gh release --repo="slackapi/slack-cli" delete "${REF}" -y --cleanup-tag; then
3835 echo "Successfully deleted ${REF}"
You can’t perform that action at this time.
0 commit comments