Skip to content

[IGNORE] Add workflow_dispatch for operatorhub release and enforce tag-only refs#399

Open
slashpai wants to merge 1 commit intoperses:mainfrom
slashpai:operator-hub-wf
Open

[IGNORE] Add workflow_dispatch for operatorhub release and enforce tag-only refs#399
slashpai wants to merge 1 commit intoperses:mainfrom
slashpai:operator-hub-wf

Conversation

@slashpai
Copy link
Copy Markdown
Member

@slashpai slashpai commented May 7, 2026

Description

Related-to: #350

Type of change

  • FEATURE (non-breaking change which adds functionality)
  • ENHANCEMENT (non-breaking change which improves existing functionality)
  • BUGFIX (non-breaking change which fixes an issue)
  • BREAKINGCHANGE (fix or feature that would cause existing functionality to not work as expected)
  • DOC (documentation only)
  • IGNORE (tooling, build system, CI, etc.)

Verification

  • Unit tests added/updated
  • Integration tests added/updated
  • E2E tests added/updated
  • Manual testing performed

Checklist

  • Pull request has a descriptive title and context useful to a reviewer
  • Code follows project conventions and passes linting
  • All commits have DCO signoffs

@slashpai slashpai force-pushed the operator-hub-wf branch 2 times, most recently from 7f64956 to 52c064b Compare May 7, 2026 11:16
@slashpai slashpai force-pushed the operator-hub-wf branch from 52c064b to 4ac02b3 Compare May 7, 2026 11:20
TAG="${RELEASE_REF_INPUT#refs/tags/}"
VERSION="${TAG#v}"

if [ -z "${TAG}" ]; then
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think here we are trying to check if this is empty, but this always has content even if RELEASE_REF_INPUT is empty, right?

exit 1
fi

if ! git ls-remote --exit-code --tags "https://github.com/${GITHUB_REPOSITORY}.git" "refs/tags/${TAG}" >/dev/null; then
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this failure can also be that the repo is unreachable, networking error for example. But the error message will still say the tag does not exist...


- name: Copy bundle to versioned directory
run: |
VERSION="${{ steps.prepare_release.outputs.version }}"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we use env like in line 111?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants