Release: e2e dry run #43
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Release: e2e dry run" | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
type: string | |
description: The version to update(https://semver.org/). | |
required: true | |
tracker-url: | |
type: string | |
description: The URL to tracker issue(https://github.com/opendatahub-io/opendatahub-community/issues). | |
required: true | |
permissions: | |
checks: read | |
pull-requests: write | |
contents: write | |
env: | |
VERSION: ${{ inputs.version }} | |
TRACKER_URL: ${{ inputs.tracker-url }} | |
jobs: | |
dry-run-pr: | |
runs-on: ubuntu-latest | |
name: Create dry-run pr and update tags | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Validate semver | |
run: ./.github/scripts/validate-semver.sh v${{ env.VERSION }} | |
- uses: ./.github/actions/update-manifest-branches | |
- name: Create dry-run pr | |
uses: peter-evans/create-pull-request@v6 | |
id: cpr-dry-run | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commit-message: "Test ${{ env.VERSION }} Release" | |
branch: odh-release/e2e-dry-run | |
delete-branch: true | |
title: "[DO NOT MERGE] Test ${{ env.VERSION }} Release" | |
- name: Comment version and tracker url in the pr | |
uses: thollander/actions-comment-pull-request@v2 | |
with: | |
message: | | |
#Release# | |
version=${{ env.VERSION }} | |
tracker-url=${{ env.TRACKER_URL }} | |
:exclamation: DO NOT EDIT THIS COMMENT :exclamation: | |
pr_number: ${{ steps.cpr-dry-run.outputs.pull-request-number }} |