Skip to content

fixed yaml

fixed yaml #17

Workflow file for this run

name: Publish OperatorHub release
on:
workflow_run:
workflows:
- Release
types:
- completed
jobs:
update:
name: Publish new OperatorHub release
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' && ! contains(github.event.workflow_run.head_branch, '-') }}
strategy:
matrix:
repo:
- fork: VictoriaMetrics/operatorhub-operators
upstream: k8s-operatorhub/community-operators
- fork: VictoriaMetrics/openshift-community-operators-prod
upstream: redhat-openshift-ecosystem/community-operators-prod
steps:
- name: Check out OperatorHub operators repo fork
uses: actions/checkout@v4
with:
repository: ${{ matrix.repo.upstream }}
ref: main
token: ${{ secrets.VM_BOT_GH_TOKEN }}
path: __k8s-operatorhub-repo
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.VM_BOT_GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.VM_BOT_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
workdir: __k8s-operatorhub-repo
- uses: dawidd6/action-download-artifact@v6
with:
name: olm
workflow: main.yaml
github_token: ${{ secrets.VM_BOT_GH_TOKEN }}
run_id: ${{ github.event.workflow_run.id }}
path: bundle
- name: Add operatorhub bundle
id: update
run: |
VERSION=$(ls bundle | head -1)
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
mkdir -p __k8s-operatorhub-repo/operators/victoriametrics-operator
mv bundle/* __k8s-operatorhub-repo/operators/victoriametrics-operator/
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
add-paths: operators/victoriametrics-operator
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 }})

Check failure on line 68 in .github/workflows/operatorhub.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/operatorhub.yaml

Invalid workflow file

You have an error in your yaml syntax on line 68
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`