Skip to content
Open
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
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
## :snowflake: Code freeze for `branch-${VERSION}` and `v${VERSION}` release
## :snowflake: Code freeze for `branch-${CURRENT_VERSION}` and `v${CURRENT_VERSION}` release

### What does this mean?
Only critical/hotfix level issues should be merged into `branch-${VERSION}` until release (merging of this PR).
Only critical/hotfix level issues should be merged into `branch-${CURRENT_VERSION}` until release (merging of this PR).

All other development PRs should be retargeted towards the next release branch: `branch-${NEXT_VERSION}`.

### What is the purpose of this PR?
- Update documentation
- Allow testing for the new release
- Enable a means to merge `branch-${VERSION}` into `main` for the release
- Enable a means to merge `branch-${CURRENT_VERSION}` into `main` for the release
50 changes: 50 additions & 0 deletions .github/actions/configure-morpheus-bot/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# SPDX-FileCopyrightText: Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Configure Morpheus Bot

inputs:
bot-app-id:
description: 'The app id of the bot'
required: true
type: string
bot-private-key:
description: 'The private key of the bot'
required: true
type: string
outputs:
token:
description: 'The token generated for the bot'
value: ${{steps.generate-token.outputs.token }}

runs:
using: "composite"
steps:
- name: Generate Token
uses: actions/create-github-app-token@v1
id: generate-token
with:
app-id: ${{ inputs.bot-app-id }}
private-key: ${{ inputs.bot-private-key }}
- name: Configure Git
shell: bash
run: |
git config --global user.name "morpheus-bot-test[bot]"
git config --global user.email "152534332+morpheus-bot-test[bot]@users.noreply.github.com"
echo "GITHUB_TOKEN=${{ steps.generate-token.outputs.token }}" >> "$GITHUB_ENV"
echo "Git config:"
git config -l --show-origin
echo "Github Auth Info:"
gh auth status
72 changes: 72 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# SPDX-FileCopyrightText: Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Release

permissions:
contents: write
pull-requests: write

on:
workflow_dispatch:
inputs:
current_version_array:
description: 'Current full version of the project expressed as a JSON array (e.g. `["24", "03", "00"]`)'
required: true
type: string
default: '["24", "03", "00"]'
next_version_array:
description: 'Next full version of the project as a JSON array (e.g. `["24", "07", "00"]`)'
required: true
type: string
default: '["24", "07", "00"]'
create_codefreeze_pr:
description: 'Create/Update the codefreeze PR'
required: true
type: boolean
default: false
create_next_release_branch:
description: 'Creates the next release branch and configures tags'
required: true
type: boolean
default: false
update_next_release_versions:
description: 'Runs the update-version and commits the changes to the next release branch'
required: true
type: boolean
default: false
update_changelog:
description: 'Updates the CHANGELOG.md file for the current release and commits the changes to the current release branch'
required: true
type: boolean
default: false
merge_release_branch:
description: 'Merges the code freeze release branch, creates the release tag, and creates a new Github release'
required: true
type: boolean
default: false

jobs:
release_procedures:
uses: nv-morpheus/utilities/.github/workflows/release_procedures.yml@mdd_release-procedures
with:
current_version_array: ${{ inputs.current_version_array }}
next_version_array: ${{ inputs.next_version_array }}
create_codefreeze_pr: ${{ inputs.create_codefreeze_pr }}
create_next_release_branch: ${{ inputs.create_next_release_branch }}
update_next_release_versions: ${{ inputs.update_next_release_versions }}
update_changelog: ${{ inputs.update_changelog }}
merge_release_branch: ${{ inputs.merge_release_branch }}
secrets: inherit
Loading