Initial commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
name: CD
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
jobs:
|
||||||
|
release-tag:
|
||||||
|
name: Release Tag
|
||||||
|
runs-on: ubuntu
|
||||||
|
steps:
|
||||||
|
- name: Release Tag
|
||||||
|
uses: https://gitea.jsc.idv.tw/composite-actions/release-tag@${{ vars.ACTION_VERSION_CALCULATE_VERSION }}
|
||||||
|
with:
|
||||||
|
gitea_token: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
gitea_release: ${{ vars.ACTION_GITEA_RELEASE_VERSION }}
|
||||||
|
version_calculate: ${{ vars.ACTION_VERSION_CALCULATE_VERSION }}
|
||||||
|
release_cleanup: ${{ vars.ACTION_RELEASE_CLEANUP_VERSION }}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
name: CI
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches-ignore:
|
||||||
|
- master
|
||||||
|
types: [opened, synchronize]
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
issues: write
|
||||||
|
jobs:
|
||||||
|
ai-code-review:
|
||||||
|
name: Code Review
|
||||||
|
runs-on: ubuntu
|
||||||
|
steps:
|
||||||
|
- name: Code Review
|
||||||
|
uses: https://gitea.jsc.idv.tw/composite-actions/opencode-code-review@${{ vars.ACTION_AI_CODE_REVIEW_VERSION }}
|
||||||
+10
@@ -0,0 +1,10 @@
|
|||||||
|
FROM alpine:latest
|
||||||
|
|
||||||
|
# 安裝必要的工具
|
||||||
|
RUN apk add --no-cache --no-check-certificate bash
|
||||||
|
|
||||||
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
|
||||||
|
RUN chmod +x /entrypoint.sh
|
||||||
|
|
||||||
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
+22
@@ -0,0 +1,22 @@
|
|||||||
|
name: 'Docker Action Template'
|
||||||
|
description: 'Docker Action 範本'
|
||||||
|
author: 'Jeffery'
|
||||||
|
inputs:
|
||||||
|
gitea_token:
|
||||||
|
description: 'Gitea Token'
|
||||||
|
required: true
|
||||||
|
text:
|
||||||
|
description: '輸入的文字'
|
||||||
|
required: false
|
||||||
|
default: 'Hello, World!'
|
||||||
|
outputs:
|
||||||
|
text:
|
||||||
|
description: '輸出的文字'
|
||||||
|
runs:
|
||||||
|
using: 'docker'
|
||||||
|
image: 'Dockerfile'
|
||||||
|
env:
|
||||||
|
GITEA_SERVER_URL: ${{ gitea.server_url }}
|
||||||
|
GITEA_REPOSITORY: ${{ gitea.repository }}
|
||||||
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN || inputs.gitea_token }}
|
||||||
|
TEXT: ${{ inputs.text }}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
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"
|
||||||
Reference in New Issue
Block a user