2 Commits

Author SHA1 Message Date
Jeffery
49839e72a0 feat: 修改指令執行格式 2025-12-01 12:00:06 +08:00
Jeffery
5ca3f9b08a feat: 修正 if 語法 2025-12-01 11:58:42 +08:00

View File

@@ -28,25 +28,10 @@ runs:
- name: 清理舊版本 - name: 清理舊版本
id: cleanup id: cleanup
shell: bash shell: bash
run: | run: chmod +x "${{ github.action_path }}/cleanup-releases.sh" && "${{ github.action_path }}/cleanup-releases.sh" "${{ inputs.gitea-server }}" "${{ inputs.repository }}" "${{ inputs.token }}" "${{ inputs.keep-count }}" "${{ inputs.dry-run }}"
chmod +x "${{ github.action_path }}/cleanup-releases.sh"
"${{ github.action_path }}/cleanup-releases.sh" \
"${{ inputs.gitea-server }}" \
"${{ inputs.repository }}" \
"${{ inputs.token }}" \
"${{ inputs.keep-count }}" \
"${{ inputs.dry-run }}"
- name: 清理舊映像 - name: 清理舊映像
id: cleanup-images id: cleanup-images
if: ${{ inputs.package-name != '' }} if: inputs.package-name != ''
shell: bash shell: bash
run: | run: chmod +x "${{ github.action_path }}/cleanup-images.sh" && "${{ github.action_path }}/cleanup-images.sh" "${{ inputs.gitea-server }}" "${{ inputs.repository }}" "${{ inputs.package-name }}" "${{ inputs.token }}" "${{ inputs.keep-count }}" "${{ inputs.dry-run }}"
chmod +x "${{ github.action_path }}/cleanup-images.sh"
"${{ github.action_path }}/cleanup-images.sh" \
"${{ inputs.gitea-server }}" \
"${{ inputs.repository }}" \
"${{ inputs.package-name }}" \
"${{ inputs.token }}" \
"${{ inputs.keep-count }}" \
"${{ inputs.dry-run }}"