Skip to content

Commit

Permalink
One more fix to the operatorhub publish action (#919)
Browse files Browse the repository at this point in the history
Signed-off-by: Ruben Vargas <[email protected]>
  • Loading branch information
rubenvp8510 authored May 7, 2024
1 parent a79dc80 commit ed8f46b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/olm.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: "Publish to operatorHUB"
on:
workflow_dispatch:
inputs:
version:
description: version of the operator to publish
required: true

jobs:
operator-hub-prod-release:
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/reusable-operator-hub-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@ jobs:
--source ${{ inputs.org }}/${{ inputs.repo }} \
--force
- name: Determine operator version to release
id: operator-version
run: echo "version=$(grep -Eo '## [0-9]+\.[0-9]+\.[0-9]+' CHANGELOG.md | head -n 1 | awk '{print $2}')" >> "$GITHUB_OUTPUT"
env:
BRANCH: ${{ inputs.branch }}


- name: Checkout operatorhub repo
uses: actions/checkout@v4
with:
Expand All @@ -56,6 +49,10 @@ jobs:
token: ${{ secrets.TEMPOOPERATORBOT_GITHUB_TOKEN }}
path: tmp/

- name: Determine operator version to release
id: operator-version
run: echo "version=$(grep -Eo '## [0-9]+\.[0-9]+\.[0-9]+' tmp/CHANGELOG.md | head -n 1 | awk '{print $2}')" >> "$GITHUB_OUTPUT"

- name: Update version
env:
VERSION: ${{ steps.operator-version.outputs.version }}
Expand Down
Empty file added events.txt
Empty file.

0 comments on commit ed8f46b

Please sign in to comment.