forgejo min build env: native checkout and fetch github asset script/actions
This commit is contained in:
parent
5985d6863a
commit
790ca8c2ce
3 changed files with 128 additions and 0 deletions
31
act/fetch-gh-asset/action.yaml
Normal file
31
act/fetch-gh-asset/action.yaml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
# SPDX-FileCopyrightText: 2026 Vital A Pi <code@vp.ag>
|
||||
# SPDX-License-Identifier: MIT
|
||||
name: 'GitHub asset downloader'
|
||||
description: 'Downloads the file and chacks its SHA-sum.'
|
||||
|
||||
inputs:
|
||||
repo:
|
||||
description: 'The GitHub repository slug (e.g., canonical/chisel)'
|
||||
required: true
|
||||
tag:
|
||||
description: 'The release tag (e.g., v1.4.1)'
|
||||
required: true
|
||||
asset:
|
||||
description: 'The exact name of the asset'
|
||||
required: true
|
||||
jq_predicate:
|
||||
description: 'Optional jq predicate filter for complex matching'
|
||||
required: false
|
||||
default: ''
|
||||
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- name: Run git checkout commands
|
||||
shell: bash
|
||||
run: |
|
||||
"${{ github.action_path }}/../../fetch-gh-asset.sh" \
|
||||
"${{ inputs.repo }}" \
|
||||
"${{ inputs.tag }}" \
|
||||
"${{ inputs.asset }}" \
|
||||
"${{ inputs.jq_predicate }}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue