download an extract source file
This commit is contained in:
1 parent
ddd1615db0
commit
891e6c9ce4
1 file changed
+10
-7
@@ -48,7 +48,7 @@ jobs:
|
||||
# Set output variables for subsequent steps
|
||||
echo "latest_tag=${LATEST_TAG}" >> $GITHUB_OUTPUT
|
||||
echo "publish_date=${PUBLISH_DATE}" >> $GITHUB_OUTPUT
|
||||
# echo "file=codium-${LATEST_TAG}-el8.x86_64.rpm" >> $GITHUB_OUTPUT
|
||||
echo "file=modules-${LATEST_TAG#v}.tar.gz" >> $GITHUB_OUTPUT
|
||||
|
||||
# Check if the release already exists on Gitea
|
||||
- name: Check if release exists on Gitea
|
||||
@@ -66,13 +66,16 @@ jobs:
|
||||
echo "exists=false" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
|
||||
# - name: Download latest release from GitHub
|
||||
# if: steps.check_release_exists.outputs.exists != 'true'
|
||||
# run: |
|
||||
# DOWNLOAD_URL="https://github.com/${{ env.owner }}/${{ env.repository }}/releases/download/${{ steps.check_release.outputs.latest_tag }}/${{ steps.check_release.outputs.file }}"
|
||||
- name: Download latest release from GitHub
|
||||
if: steps.check_release_exists.outputs.exists != 'true'
|
||||
run: |
|
||||
mkdir -p source
|
||||
cd source
|
||||
DOWNLOAD_URL="https://github.com/${{ env.owner }}/${{ env.repository }}/releases/download/${{ steps.check_release.outputs.latest_tag }}/${{ steps.check_release.outputs.file }}"
|
||||
|
||||
# echo "::notice::Downloading release from $DOWNLOAD_URL ..."
|
||||
# curl -L -o "${{ steps.check_release.outputs.file }}" "$DOWNLOAD_URL"
|
||||
echo "::notice::Downloading release from $DOWNLOAD_URL ..."
|
||||
curl -L -o "${{ steps.check_release.outputs.file }}" "$DOWNLOAD_URL"
|
||||
tar -xzf "${{ steps.check_release.outputs.file }}"
|
||||
|
||||
# # - name: Build RPM
|
||||
# # if: steps.check_release_exists.outputs.exists != 'true'
|
||||
|
||||
Reference in new issue
Block a user