π€ Automated Update tagpr config #9
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: π€ Automated Update tagpr config | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Version to release.Has v prefix' | |
required: true | |
jobs: | |
config: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Update tagpr config | |
run: | | |
cat << EOF > .tagpr | |
[tagpr] | |
vPrefix = true | |
releaseBranch = main | |
versionFile = .tagpr | |
command = go run gen.go ghcr.io/cuisongliu/automq-operator:${{ github.event.inputs.version }} && make info | |
release = false | |
changelog = true | |
EOF | |
- uses: peter-evans/create-pull-request@v5 | |
with: | |
title: 'config: Automated Tagpr Update for ${{ github.event.inputs.version }}' | |
add-paths: | | |
.tagpr | |
body: | | |
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action | |
commit-message: | | |
π€ update tagpr config using robot. | |
branch: tagpr-${{ github.event.inputs.version }} | |
base: main | |
signoff: true | |
delete-branch: true | |
token: ${{ secrets.GITHUB_TOKEN }} | |
committer: github-actions[bot] <github-actions[bot]@users.noreply.github.com> | |
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com> |