commit 58a300981ab488f0ffb9875257684739ff855643 Author: GITEA COMPOSITE ACTIONS Date: Thu Jun 25 08:19:06 2026 +0000 Initial commit diff --git a/ .gitea /workflows/cd.yaml b/ .gitea /workflows/cd.yaml new file mode 100644 index 0000000..7b9122c --- /dev/null +++ b/ .gitea /workflows/cd.yaml @@ -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 }} diff --git a/ .gitea /workflows/ci.yaml b/ .gitea /workflows/ci.yaml new file mode 100644 index 0000000..3e79186 --- /dev/null +++ b/ .gitea /workflows/ci.yaml @@ -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/docker-actions/opencode-code-review@${{ vars.ACTION_AI_CODE_REVIEW_VERSION }} diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..321241a --- /dev/null +++ b/action.yml @@ -0,0 +1,36 @@ +name: 'Composite Action Template' +description: 'Composite Action 範本' +author: 'Jeffery' +inputs: + gitea_token: + description: 'Gitea Token' + required: true + 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: ${{ secrets.GITEA_TOKEN || inputs.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 \ No newline at end of file