forked from opendatahub-io/opendatahub-operator
-
Notifications
You must be signed in to change notification settings - Fork 1
26 lines (26 loc) · 844 Bytes
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: Release ODH
on:
pull_request:
types:
- closed
jobs:
release-odh:
env:
GITHUB_TOKEN: ${{ github.token }}
if: github.event.pull_request.merged && startsWith(github.event.pull_request.title, 'ODH Release') && endsWith(github.event.pull_request.title, 'Version Update')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set env variables
uses: ./.github/actions/set-shared-env
with:
pat-token: ${{ secrets.PAT }}
- name: Create release branch
run: |
git checkout -b odh-${{ env.VERSION }}
- name: Create release pr
uses: ./.github/actions/create-release-pr
with:
pr-branch: "odh-release"
title: "ODH ${{ env.VERSION }} Release"
commit-message: "ODH ${{ env.VERSION }} Release"