Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
name: Create Release

on:
pull_request:
types: [closed]
push:
branches:
- main

# Осмысленное имя ранa в Actions
run-name: >-
Release: ${{ github.event.pull_request.head.ref }} →
${{ github.event.pull_request.base.ref }}
(${{ github.event.pull_request.commits }} commits)
Release: push on ${{ github.ref_name }} by ${{ github.actor }} (commit ${{ github.sha }})

jobs:
release:
if: github.event.pull_request.merged == true && github.event.pull_request.head.ref == 'stage'
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down Expand Up @@ -91,11 +87,7 @@ jobs:
body: |
## Changes in this Release

Merged from `${{ github.event.pull_request.head.ref }}` to `${{ github.event.pull_request.base.ref }}` via PR #${{ github.event.pull_request.number }}

**Pull Request:** ${{ github.event.pull_request.title }}

For detailed changes, see the [Pull Request](${{ github.event.pull_request.html_url }})
Triggered by push to `${{ github.ref_name }}` (commit `${{ github.sha }}`)

---

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ on:

push:
branches:
- dev
- main
- feature/*
- hotfix/*

jobs:
test:
Expand Down