-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* workflow to close PR * fixed yaml * fix
- Loading branch information
1 parent
b6ed072
commit 8b4fe8f
Showing
3 changed files
with
30 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Close PR | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
repo: | ||
description: Repo slug where PR should be closed | ||
required: true | ||
type: choice | ||
options: | ||
- k8s-operatorhub/community-operators | ||
- redhat-openshift-ecosystem/community-operators-prod | ||
prNumber: | ||
description: PR number to close | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
update: | ||
name: Close PR | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Close PR | ||
run: | | ||
gh pr https://github.com/${{ github.event.inputs.repo }}/pull/${{ github.event.inputs.prNumber }} | ||
env: | ||
GH_TOKEN: ${{ secrets.VM_BOT_GH_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,15 +57,15 @@ jobs: | |
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
add-paths: operators/victoriametrics-operator | ||
commit-message: victoriametrics-operator: ${{ steps.update.outputs.VERSION }} | ||
commit-message: 'victoriametrics-operator: ${{ steps.update.outputs.VERSION }}' | ||
signoff: true | ||
author: Github Actions <[email protected]> | ||
path: __k8s-operatorhub-repo | ||
push-to-fork: ${{ matrix.repo.fork }} | ||
branch: vm-operator-release-${{ steps.update.outputs.VERSION }} | ||
token: ${{ secrets.VM_BOT_GH_TOKEN }} | ||
delete-branch: true | ||
title: victoriametrics-operator: (${{ steps.update.outputs.VERSION }}) | ||
title: 'victoriametrics-operator: (${{ steps.update.outputs.VERSION }})' | ||
body: | | ||
Added OLM package for [VictoriaMetrics operator ${{ steps.update.outputs.VERSION }}"](https://github.com/VictoriaMetrics/operator/releases/tag/v${{ steps.update.outputs.VERSION }}) | ||
> Auto-generated by `Github Actions Bot` |
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