mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-04 19:31:56 +00:00
[GHA] Treat v1.11 as a release branch (#2873)
* [GHA] Add `v1.11` branch target * [GHA] Treat `v1.11` as a release branch --------- Co-authored-by: Andrey Volk <andywolk@gmail.com>
This commit is contained in:
@@ -6,6 +6,7 @@ on:
|
||||
branches:
|
||||
- master
|
||||
- v1.10
|
||||
- v1.11
|
||||
paths:
|
||||
- "**"
|
||||
workflow_dispatch:
|
||||
@@ -68,14 +69,14 @@ jobs:
|
||||
id: release
|
||||
run: |
|
||||
if [[ '${{ github.event_name }}' == 'pull_request' ]]; then
|
||||
if [[ '${{ github.base_ref }}' == 'v1.10' ]]; then
|
||||
if [[ '${{ github.base_ref }}' == 'v1.10' || '${{ github.base_ref }}' == 'v1.11' ]]; then
|
||||
echo 'release=release' | tee -a $GITHUB_OUTPUT
|
||||
else
|
||||
echo 'release=unstable' | tee -a $GITHUB_OUTPUT
|
||||
fi
|
||||
elif [[ '${{ github.event_name }}' == 'workflow_dispatch' ]]; then
|
||||
echo 'release=${{ inputs.release }}' | tee -a $GITHUB_OUTPUT
|
||||
elif [[ '${{ github.ref }}' == 'refs/heads/v1.10' ]]; then
|
||||
elif [[ '${{ github.ref }}' == 'refs/heads/v1.10' || '${{ github.ref }}' == 'refs/heads/v1.11' ]]; then
|
||||
echo 'release=release' | tee -a $GITHUB_OUTPUT
|
||||
else
|
||||
echo 'release=unstable' | tee -a $GITHUB_OUTPUT
|
||||
@@ -157,7 +158,7 @@ jobs:
|
||||
(
|
||||
github.event_name == 'push' &&
|
||||
github.repository == 'signalwire/freeswitch' &&
|
||||
contains(fromJSON('["master", "v1.10"]'), github.ref_name)
|
||||
contains(fromJSON('["master", "v1.10", "v1.11"]'), github.ref_name)
|
||||
) ||
|
||||
(github.event_name == 'workflow_dispatch' && inputs.publish)
|
||||
}}
|
||||
@@ -192,7 +193,7 @@ jobs:
|
||||
${{
|
||||
github.event_name == 'push' &&
|
||||
github.repository == 'signalwire/freeswitch' &&
|
||||
contains(fromJSON('["master", "v1.10"]'), github.ref_name)
|
||||
contains(fromJSON('["master", "v1.10", "v1.11"]'), github.ref_name)
|
||||
}}
|
||||
needs:
|
||||
- deb-public
|
||||
|
||||
@@ -5,6 +5,7 @@ on:
|
||||
branches:
|
||||
- master
|
||||
- v1.10
|
||||
- v1.11
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
|
||||
@@ -6,10 +6,12 @@ on:
|
||||
branches:
|
||||
- master
|
||||
- v1.10
|
||||
- v1.11
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
- v1.10
|
||||
- v1.11
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
@@ -91,7 +91,7 @@ jobs:
|
||||
if: |
|
||||
failure() &&
|
||||
github.event_name == 'push' &&
|
||||
(github.ref == 'refs/heads/master' || github.ref == 'refs/heads/v1.10')
|
||||
(github.ref == 'refs/heads/master' || github.ref == 'refs/heads/v1.10' || github.ref == 'refs/heads/v1.11')
|
||||
uses: signalwire/actions-template/.github/actions/slack@main
|
||||
with:
|
||||
CHANNEL: ${{ secrets.SLACK_DEVOPS_CI_CHANNEL }}
|
||||
|
||||
@@ -91,7 +91,7 @@ jobs:
|
||||
if: |
|
||||
failure() &&
|
||||
github.event_name == 'push' &&
|
||||
(github.ref == 'refs/heads/master' || github.ref == 'refs/heads/v1.10')
|
||||
(github.ref == 'refs/heads/master' || github.ref == 'refs/heads/v1.10' || github.ref == 'refs/heads/v1.11')
|
||||
uses: signalwire/actions-template/.github/actions/slack@main
|
||||
with:
|
||||
CHANNEL: ${{ secrets.SLACK_DEVOPS_CI_CHANNEL }}
|
||||
|
||||
@@ -128,7 +128,7 @@ jobs:
|
||||
if: |
|
||||
failure() &&
|
||||
github.event_name == 'push' &&
|
||||
(github.ref == 'refs/heads/master' || github.ref == 'refs/heads/v1.10')
|
||||
(github.ref == 'refs/heads/master' || github.ref == 'refs/heads/v1.10' || github.ref == 'refs/heads/v1.11')
|
||||
uses: signalwire/actions-template/.github/actions/slack@main
|
||||
with:
|
||||
CHANNEL: ${{ secrets.SLACK_DEVOPS_CI_CHANNEL }}
|
||||
|
||||
@@ -40,4 +40,4 @@ jobs:
|
||||
with:
|
||||
name: MSI Package
|
||||
path: D:\a\freeswitch\freeswitch\x64\*.msi
|
||||
if: contains(github.event.pull_request.title, ':upload-artifacts') || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/v1.10'
|
||||
if: contains(github.event.pull_request.title, ':upload-artifacts') || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/v1.10' || github.ref == 'refs/heads/v1.11'
|
||||
|
||||
Reference in New Issue
Block a user