Skip to content

Commit

Permalink
fixed yaml (#1019)
Browse files Browse the repository at this point in the history
* workflow to close PR

* fixed yaml

* fix
  • Loading branch information
AndrewChubatiuk authored Jul 4, 2024
1 parent b6ed072 commit 8b4fe8f
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/close-pr.yaml
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 }}
4 changes: 2 additions & 2 deletions .github/workflows/operatorhub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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`
2 changes: 1 addition & 1 deletion .github/workflows/sandbox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
branch: sandbox-operator-release-automation
token: ${{ secrets.VM_BOT_GH_TOKEN }}
delete-branch: true
title: sandbox: update operator ${{ steps.update.outputs.IMAGE_TAG }}
title: 'sandbox: update operator ${{ steps.update.outputs.IMAGE_TAG }}'
body: |
Deploy [${{ steps.update.outputs.IMAGE_TAG }}"](https://github.com/VictoriaMetrics/operator/commit/${{ steps.update.outputs.IMAGE_TAG }}) to sandbox
> Auto-generated by `Github Actions Bot`

0 comments on commit 8b4fe8f

Please sign in to comment.