Skip to content

Add workflow release #5744

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 18, 2025
Merged
Changes from 1 commit
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
37 changes: 37 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: release

on:
workflow_dispatch:
inputs:
version:
description: 'release version (e.g. v0.48.1)'
required: true
type: string
jobs:
tool:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Cut Release
run: |
git config user.name "pipecd-bot"
git config user.email "[email protected]"
# Run release command
make release version=${{ inputs.version }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
title: "[bot] Release ${{ inputs.version }}"
commit-message: "Cut release ${{ inputs.version }}"
branch: "create-pull-request/release-${{ github.sha }}"
body: |
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action.
The workflow is defined [here](https://github.com/pipe-cd/pipecd/blob/master/.github/workflows/release.yaml).

**Note:** You need to **close and reopen this PR** manually to trigger status check workflows. (Or just click `Update branch` if possible.)
For details, see https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs.
delete-branch: true
signoff: true
token: ${{ secrets.GITHUB_TOKEN }}
Loading