Enhance Docker Action: Add curl and jq to Dockerfile, update action.yaml inputs, and improve entrypoint.sh with error handling and release management logic.
This commit is contained in:
+5
-11
@@ -2,21 +2,15 @@ name: 'Docker Action Template'
|
||||
description: 'Docker Action 範本'
|
||||
author: 'Jeffery'
|
||||
inputs:
|
||||
gitea_token:
|
||||
description: 'Gitea Token'
|
||||
required: true
|
||||
text:
|
||||
description: '輸入的文字'
|
||||
keep_count:
|
||||
description: ''
|
||||
required: false
|
||||
default: 'Hello, World!'
|
||||
outputs:
|
||||
text:
|
||||
description: '輸出的文字'
|
||||
default: 2
|
||||
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 }}
|
||||
GITEA_TOKEN: ${{ secrets.CUSTOM_TOKEN || secrets.GITEA_TOKEN }}
|
||||
KEEP_COUNT: ${{ inputs.keep_count }}
|
||||
Reference in New Issue
Block a user