Skip to content

Release v24.9.0-sapial-release-naive-sdks-1-daily-2024-11-14-17-16 #205

Release v24.9.0-sapial-release-naive-sdks-1-daily-2024-11-14-17-16

Release v24.9.0-sapial-release-naive-sdks-1-daily-2024-11-14-17-16 #205

name: Create new release
on:
pull_request:
types: closed
jobs:
create-new-release:
if: |
github.event.pull_request.merged &&
(startsWith(github.head_ref, 'release-v') ||
startsWith(github.head_ref, 'release/v')) &&
(startsWith(github.base_ref, 'main') ||
startsWith(github.base_ref, 'lts/v'))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Create release
run: |
VERSION=$(echo "${GITHUB_HEAD_REF}" | sed -E "s/^release[\/-]//")
gh release create $VERSION --notes "Bump to $VERSION" --title "Release-$VERSION" --target "${GITHUB_HEAD_REF}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}