harvester-ui-extension/.github/workflows/build-standalone-on-merge.yaml
Workflow config file is invalid. Please check your config file: yaml: line 31: could not find expected ':'
Andy Lee c8a0885fe6 ci: fix CI_BRANCH ternary so PR builds skip upload gate (#1062)
* ci: fix CI_BRANCH ternary so PR builds skip upload gate

Signed-off-by: Andy Lee <andy.lee@suse.com>

* ci: simplify CI_BRANCH expression comment

Signed-off-by: Andy Lee <andy.lee@suse.com>

---------

Signed-off-by: Andy Lee <andy.lee@suse.com>
(cherry picked from commit 719c33fa12e368663a24583af5d2ff456bb11a9d)

# Conflicts:
#	.github/workflows/build-standalone-on-merge.yaml
2026-07-28 06:34:57 +00:00

36 lines
784 B
YAML

name: Build Standalone on PR Merge
on:
push:
branches:
- main
- 'release-harvester-v*'
- '*-dev'
pull_request:
branches:
- main
- 'release-harvester-v*'
- '*-dev'
types:
- merged
jobs:
build-validation:
name: Build Test
uses: ./.github/workflows/run-lint.yaml
build:
name: Build and Upload Package
uses: ./.github/workflows/build-and-publish-standalone.yaml
needs:
- build-validation
permissions:
contents: read
packages: write
id-token: write
with:
<<<<<<< HEAD
CI_BRANCH: ${{github.ref_name}}
=======
CI_BRANCH: ${{ github.event_name == 'push' && github.ref_name || '' }}
>>>>>>> 719c33f (ci: fix CI_BRANCH ternary so PR builds skip upload gate (#1062))