Skip to content

πŸ€– Automated Update tagpr config #10

πŸ€– Automated Update tagpr config

πŸ€– Automated Update tagpr config #10

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>