fix: simplify Forgejo publish workflow syntax
This commit is contained in:
parent
3c94072b86
commit
b537823427
|
|
@ -5,32 +5,18 @@ on:
|
|||
tags:
|
||||
- 'v*'
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
skill_slug:
|
||||
description: Skill slug override (optional)
|
||||
required: false
|
||||
skill_subpath:
|
||||
description: Skill folder path override (optional)
|
||||
required: false
|
||||
skill_doc_path:
|
||||
description: Skill doc path override
|
||||
required: false
|
||||
default: SKILL.md
|
||||
skill_version:
|
||||
description: Version override (default tag name)
|
||||
required: false
|
||||
|
||||
jobs:
|
||||
register-skill-version:
|
||||
runs-on: docker
|
||||
env:
|
||||
API_BASE: ${{ vars.API_BASE || secrets.API_BASE }}
|
||||
API_BASE: ${{ secrets.API_BASE }}
|
||||
CLIENT_KEY: ${{ secrets.CLIENT_KEY }}
|
||||
SKILL_VERSION: ${{ github.event.inputs.skill_version || github.ref_name }}
|
||||
SKILL_SUBPATH: ${{ github.event.inputs.skill_subpath || vars.SKILL_SUBPATH || secrets.SKILL_SUBPATH }}
|
||||
SKILL_DOC_PATH: ${{ github.event.inputs.skill_doc_path || vars.SKILL_DOC_PATH || secrets.SKILL_DOC_PATH || 'SKILL.md' }}
|
||||
SKILL_SLUG: ${{ github.event.inputs.skill_slug || vars.SKILL_SLUG || secrets.SKILL_SLUG }}
|
||||
RELEASE_NOTE: ${{ github.event.release.body }}
|
||||
SKILL_VERSION: ${{ github.ref_name }}
|
||||
SKILL_SUBPATH: ${{ secrets.SKILL_SUBPATH }}
|
||||
SKILL_DOC_PATH: ${{ secrets.SKILL_DOC_PATH }}
|
||||
SKILL_SLUG: ${{ secrets.SKILL_SLUG }}
|
||||
RELEASE_NOTE: ""
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
|
@ -59,13 +45,16 @@ jobs:
|
|||
set -euo pipefail
|
||||
|
||||
if [ -z "${API_BASE:-}" ]; then
|
||||
echo "API_BASE is required (global/repo var or secret)."
|
||||
echo "API_BASE is required (secret)."
|
||||
exit 1
|
||||
fi
|
||||
if [ -z "${CLIENT_KEY:-}" ]; then
|
||||
echo "CLIENT_KEY is required (secret)."
|
||||
exit 1
|
||||
fi
|
||||
if [ -z "${SKILL_DOC_PATH:-}" ]; then
|
||||
SKILL_DOC_PATH="SKILL.md"
|
||||
fi
|
||||
|
||||
SKILL_BASE_DIR="${SKILL_SUBPATH:-.}"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue