This repository has been archived on 2024-09-02. You can view files and clone it, but cannot push or open issues or pull requests.
actions-deploy-to-skynet/get_lfs/action.yml

26 lines
850 B
YAML

name: 'Deploy to Skynet'
description: 'Pull LFS objects, its borked otherwise on gitea/forgejo'
inputs:
repository:
description: 'Pass in gitea.repository'
required: true
ref_name:
description: 'Pass in gitea.ref_name'
required: true
runs:
using: "composite"
steps:
- name: "Pull LFS objects"
shell: bash
run: |
UrlBase=$GITHUB_SERVER_URL; \
UrlLfsBase=$UrlBase/${{ inputs.repository }}.git/info/lfs/objects; \
Auth=`git config --get --local http.$UrlBase/.extraheader`; \
git config --local http.${UrlLfsBase}/batch.extraheader "$Auth"; \
git config --local http.${UrlLfsBase}/.extraheader ''
git config --local lfs.transfer.maxretries 1
git lfs install
git lfs fetch origin refs/remotes/origin/${{ inputs.ref_name }}
git lfs checkout