mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-13 21:21:44 +00:00
ci: revert change
Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com>
This commit is contained in:
parent
da4121da69
commit
55aaa8440d
50
.github/workflows/build-extension-on-release.yml
vendored
50
.github/workflows/build-extension-on-release.yml
vendored
@ -1,14 +1,9 @@
|
|||||||
name: Build and Release Extension Charts
|
name: Build and Release Extension Charts on Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
release:
|
release:
|
||||||
types: [released]
|
types: [released]
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- "release-harvester-v*"
|
|
||||||
types:
|
|
||||||
- merged
|
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
@ -25,40 +20,15 @@ jobs:
|
|||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
uses: ./.github/actions/lint
|
uses: ./.github/actions/lint
|
||||||
|
|
||||||
build-extension-charts:
|
build-extension-charts:
|
||||||
needs:
|
needs:
|
||||||
- lint
|
- lint
|
||||||
runs-on: ubuntu-latest
|
uses: rancher/dashboard/.github/workflows/build-extension-charts.yml@master
|
||||||
steps:
|
permissions:
|
||||||
- uses: actions/checkout@v4
|
actions: write
|
||||||
|
contents: write
|
||||||
- name: Determine target branch
|
deployments: write
|
||||||
id: set_target
|
pages: write
|
||||||
run: |
|
with:
|
||||||
if [[ "${{ github.event_name }}" == "release" ]]; then
|
target_branch: gh-pages
|
||||||
echo "TARGET_BRANCH=gh-pages" >> $GITHUB_ENV
|
tagged_release: ${{ github.ref_name }}
|
||||||
elif [[ "${{ github.event_name }}" == "pull_request" && "${{ github.event.pull_request.merged }}" == "true" ]]; then
|
|
||||||
VERSION=$(echo "${{ github.ref }}" | sed -n 's/refs\/heads\/release-harvester-v\(.*\)/v\1-head/p')
|
|
||||||
if [[ -n "$VERSION" ]]; then
|
|
||||||
echo "TARGET_BRANCH=$VERSION" >> $GITHUB_ENV
|
|
||||||
else
|
|
||||||
echo "Error: Could not determine target branch."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo "Skipping build. No matching condition."
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Build and push extension charts
|
|
||||||
if: env.TARGET_BRANCH != ''
|
|
||||||
uses: rancher/dashboard/.github/workflows/build-extension-charts.yml@master
|
|
||||||
permissions:
|
|
||||||
actions: write
|
|
||||||
contents: write
|
|
||||||
deployments: write
|
|
||||||
pages: write
|
|
||||||
with:
|
|
||||||
target_branch: ${{ env.TARGET_BRANCH }}
|
|
||||||
tagged_release: ${{ github.ref_name }}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user