Initial commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
name: CD
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
jobs:
|
||||||
|
release-tag-version:
|
||||||
|
name: Release Tag Version
|
||||||
|
runs-on: ubuntu
|
||||||
|
steps:
|
||||||
|
- name: 釋出並標註成品版本
|
||||||
|
uses: https://gitea.jsc.idv.tw/composite-actions/release-tag-version@${{ vars.ACTION_RELEASE_TAG_VERSION }}
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
name: CI
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches-ignore:
|
||||||
|
- master
|
||||||
|
types: [opened, synchronize]
|
||||||
|
jobs:
|
||||||
|
ai-code-review:
|
||||||
|
name: AI Code Review
|
||||||
|
runs-on: ubuntu
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
issues: write
|
||||||
|
steps:
|
||||||
|
- name: AI 程式碼審查 by OpenCode
|
||||||
|
uses: https://gitea.jsc.idv.tw/composite-actions/opencode-code-review@${{ vars.ACTION_OPENCODE_CODE_REVIEW_VERSION }}
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.TOKEN }}
|
||||||
+33
@@ -0,0 +1,33 @@
|
|||||||
|
name: 'Composite Action Template'
|
||||||
|
description: 'Composite Action 範本'
|
||||||
|
author: 'Jeffery'
|
||||||
|
inputs:
|
||||||
|
text:
|
||||||
|
description: '輸入的文字'
|
||||||
|
required: false
|
||||||
|
default: 'Hello, World!'
|
||||||
|
outputs:
|
||||||
|
text:
|
||||||
|
description: '輸出的文字'
|
||||||
|
value: ${{ steps.change.outputs.text }}
|
||||||
|
runs:
|
||||||
|
using: 'composite'
|
||||||
|
steps:
|
||||||
|
- name: 交換
|
||||||
|
id: change
|
||||||
|
env:
|
||||||
|
GITEA_SERVER_URL: ${{ gitea.server_url }}
|
||||||
|
GITEA_REPOSITORY: ${{ gitea.repository }}
|
||||||
|
GITEA_TOKEN: ${{ gitea.token }}
|
||||||
|
TEXT: ${{ inputs.text }}
|
||||||
|
run: |
|
||||||
|
echo "Gitea Server Url: $GITEA_SERVER_URL"
|
||||||
|
|
||||||
|
echo "Gitea Repository: $GITEA_REPOSITORY"
|
||||||
|
|
||||||
|
echo "Gitea Token: $GITEA_TOKEN"
|
||||||
|
|
||||||
|
echo "Text: $TEXT"
|
||||||
|
|
||||||
|
echo "text=$TEXT" >> "$GITHUB_OUTPUT"
|
||||||
|
shell: bash
|
||||||
Reference in New Issue
Block a user