28 lines
617 B
YAML
28 lines
617 B
YAML
name: ci
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
concurrency:
|
|
group: ci-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
jobs:
|
|
test:
|
|
runs-on: docker-ubuntu
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: https://gitea.jsc.idv.tw/actions/action-ci@v0.0.1
|
|
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
|