This commit is contained in:
+11
-12
@@ -11,17 +11,16 @@ jobs:
|
||||
runs-on: docker-ubuntu
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: https://gitea.jsc.idv.tw/actions/action-ci@v0.0.1
|
||||
- uses: https://gitea.jsc.idv.tw/actions/action-ci@v0.0.2
|
||||
with:
|
||||
go_test: true
|
||||
docker_build: false
|
||||
- id: ch
|
||||
uses: ./
|
||||
with:
|
||||
task: resolve-channel
|
||||
branch: dev
|
||||
base_branch: main
|
||||
main_branch: main
|
||||
dev_branch: dev
|
||||
- name: 檢查輸出
|
||||
run: test "${{ steps.ch.outputs.channel }}" = release
|
||||
docker_build: true
|
||||
docker_run_options: |
|
||||
--env=INPUT_BRANCH=dev
|
||||
--env=INPUT_BASE_BRANCH=main
|
||||
--env=INPUT_MAIN_BRANCH=main
|
||||
--env=INPUT_DEV_BRANCH=dev
|
||||
--env=GITHUB_OUTPUT=/dev/stdout
|
||||
docker_run_args: |
|
||||
resolve-channel
|
||||
docker_run_expect: channel=release
|
||||
|
||||
@@ -38,6 +38,6 @@
|
||||
|
||||
## 開發
|
||||
|
||||
`ci.yaml` 用共用的 [action-ci](https://gitea.jsc.idv.tw/actions/action-ci) 跑 shellcheck、Go 黑箱測試,並用 `uses: ./` 實際執行一次(同時檢查映像檔建得起來)。
|
||||
`ci.yaml` 用共用的 [action-ci](https://gitea.jsc.idv.tw/actions/action-ci) 跑 shellcheck、Go 黑箱測試,並建置映像檔、實際執行一次。
|
||||
|
||||
圖示:`icon.svg`(Gitea 儲存庫頭像用 `icon.png`)。
|
||||
|
||||
Reference in New Issue
Block a user