Skip to content

Commit 715ca3f

Browse files
committed
ci: run in commit
1 parent 77fd566 commit 715ca3f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
pull_request:
77
branches: [ "master" ]
88
workflow_dispatch:
9+
inputs:
10+
ref-commit-id:
11+
description: 'Ref main repo branch commit id (default is master latest one )'
12+
required: false
13+
default: 'master'
914

1015
jobs:
1116
build:
@@ -20,7 +25,7 @@ jobs:
2025

2126
- name: Run Examples generate original html files with go-echarts
2227
run: |
23-
go get github.com/go-echarts/go-echarts/v2@master
28+
go get github.com/go-echarts/go-echarts/v2@${{ github.event.inputs.ref-commit-id }}
2429
echo "Currently working on go-echarts version ===>"
2530
cat go.mod
2631
go mod tidy

0 commit comments

Comments
 (0)