fix: pass gitea values through env in bootstrap step
iperf3 static musl build / build-and-release (push) Failing after 4s
iperf3 static musl build / build-and-release (push) Failing after 4s
This commit is contained in:
@@ -21,12 +21,16 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Bootstrap workspace
|
- name: Bootstrap workspace
|
||||||
shell: sh
|
shell: sh
|
||||||
|
env:
|
||||||
|
REPO_URL: ${{ gitea.server_url }}
|
||||||
|
REPO_NAME: ${{ gitea.repository }}
|
||||||
|
GIT_SHA: ${{ gitea.sha }}
|
||||||
run: |
|
run: |
|
||||||
apk add --no-cache git
|
apk add --no-cache git
|
||||||
rm -rf "$GITHUB_WORKSPACE"
|
rm -rf "$GITHUB_WORKSPACE"
|
||||||
git clone --depth 1 "${{ gitea.server_url }}/${{ gitea.repository }}.git" "$GITHUB_WORKSPACE"
|
git clone --depth 1 "$REPO_URL/$REPO_NAME.git" "$GITHUB_WORKSPACE"
|
||||||
git -C "$GITHUB_WORKSPACE" fetch --depth 1 origin "${{ gitea.sha }}"
|
git -C "$GITHUB_WORKSPACE" fetch --depth 1 origin "$GIT_SHA"
|
||||||
git -C "$GITHUB_WORKSPACE" checkout "${{ gitea.sha }}"
|
git -C "$GITHUB_WORKSPACE" checkout "$GIT_SHA"
|
||||||
|
|
||||||
- name: Read version
|
- name: Read version
|
||||||
id: meta
|
id: meta
|
||||||
|
|||||||
Reference in New Issue
Block a user