Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f00439a430 | |||
| 02ec230b3f |
@@ -51,9 +51,11 @@ jobs:
|
||||
with:
|
||||
lfs: false
|
||||
persist-credentials: true
|
||||
|
||||
|
||||
- name: Checkout LFS
|
||||
run: |
|
||||
apt-get update && apt-get install -y git-lfs
|
||||
git lfs update --force || true
|
||||
git lfs install --local
|
||||
AUTH=$(git config http.${{ gitea.server_url }}/.extraheader)
|
||||
AUTH_FILE=$(git config includeif.gitdir:/workspace/${{ gitea.repository }}/.git.path)
|
||||
@@ -91,30 +93,36 @@ jobs:
|
||||
image: barichello/godot-ci:mono-4.6
|
||||
|
||||
steps:
|
||||
- name: Install node, curl and zip
|
||||
- name: Install curl and zip
|
||||
run: |
|
||||
apt update && apt -y install curl zip nodejs
|
||||
apt update && apt -y install curl zip
|
||||
- name: Install node 24
|
||||
run: |
|
||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
|
||||
\. "$HOME/.nvm/nvm.sh"
|
||||
nvm install 24
|
||||
node -v
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
lfs: false
|
||||
persist-credentials: true
|
||||
|
||||
# - name: Checkout LFS
|
||||
# run: |
|
||||
# UrlBase=$GITHUB_SERVER_URL; \
|
||||
# UrlLfsBase=$UrlBase/${{ gitea.repository }}.git/info/lfs/objects; \
|
||||
# Auth=`/usr/bin/git config --get --local http.$UrlBase/.extraheader`; \
|
||||
# /usr/bin/git config --local http.${UrlLfsBase}/batch.extraheader "$Auth"; \
|
||||
# /usr/bin/git config --local http.${UrlLfsBase}/.extraheader ''
|
||||
#
|
||||
# git config --local lfs.transfer.maxretries 1
|
||||
#
|
||||
# /usr/bin/git lfs fetch origin refs/remotes/origin/${{ gitea.ref_name }}
|
||||
# /usr/bin/git lfs checkout
|
||||
# /usr/bin/git add .
|
||||
# /usr/bin/git reset --hard
|
||||
- name: Checkout LFS
|
||||
run: |
|
||||
UrlBase=$GITHUB_SERVER_URL; \
|
||||
UrlLfsBase=$UrlBase/${{ gitea.repository }}.git/info/lfs/objects; \
|
||||
Auth=`/usr/bin/git config --get --local http.$UrlBase/.extraheader`; \
|
||||
/usr/bin/git config --local http.${UrlLfsBase}/batch.extraheader "$Auth"; \
|
||||
/usr/bin/git config --local http.${UrlLfsBase}/.extraheader ''
|
||||
|
||||
git config --local lfs.transfer.maxretries 1
|
||||
|
||||
/usr/bin/git lfs fetch origin refs/remotes/origin/${{ gitea.ref_name }}
|
||||
/usr/bin/git lfs checkout
|
||||
/usr/bin/git add .
|
||||
/usr/bin/git reset --hard
|
||||
|
||||
# - name: Checkout
|
||||
# uses: actions/checkout@v6
|
||||
@@ -122,14 +130,14 @@ jobs:
|
||||
# lfs: false
|
||||
# persist-credentials: true
|
||||
|
||||
- name: Checkout LFS
|
||||
run: |
|
||||
git lfs install --local
|
||||
AUTH=$(git config http.${{ gitea.server_url }}/.extraheader)
|
||||
AUTH_FILE=$(git config includeif.gitdir:/workspace/${{ gitea.repository }}/.git.path)
|
||||
git config -f $AUTH_FILE --unset http.${{ gitea.server_url }}/.extraheader
|
||||
git config -f $AUTH_FILE http.${{ gitea.server_url }}/${{ gitea.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH"
|
||||
git lfs pull
|
||||
# - name: Checkout LFS
|
||||
# run: |
|
||||
# git lfs install --local
|
||||
# AUTH=$(git config http.${{ gitea.server_url }}/.extraheader)
|
||||
# AUTH_FILE=$(git config includeif.gitdir:/workspace/${{ gitea.repository }}/.git.path)
|
||||
# git config -f $AUTH_FILE --unset http.${{ gitea.server_url }}/.extraheader
|
||||
# git config -f $AUTH_FILE http.${{ gitea.server_url }}/${{ gitea.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH"
|
||||
# git lfs pull
|
||||
|
||||
# - name: Remove GDUnit addon folder because it breaks the build
|
||||
# run: |
|
||||
|
||||
Reference in New Issue
Block a user