Skip to content

Commit

Permalink
Merge pull request #205 from koplo199/bottlesdevs-pr
Browse files Browse the repository at this point in the history
Fix #2382
  • Loading branch information
mirkobrombin authored Dec 19, 2022
2 parents 212ba03 + 5d2bbfe commit ffe27b6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 26 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/pull-components.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@ jobs:
tar --use-compress-program=unzstd -xvf $release_archive_name
tar -zcvf "${{ env.NAME }}.tar.gz" "${{ env.NAME }}"
echo "UPLOAD_FILE=$(pwd)/${{ env.NAME }}.tar.gz" >> $GITHUB_ENV
elif [[ $release_archive_name == "dxvk-nvapi"* ]]; then
curl -fsSLO "$release_archive_url"
mkdir "${{ env.NAME }}"
tar -xvf $release_archive_name --directory "${{ env.NAME }}"
tar -zcvf "${{ env.NAME }}.tar.gz" "${{ env.NAME }}"
echo "UPLOAD_FILE=$(pwd)/${{ env.NAME }}.tar.gz" >> $GITHUB_ENV
fi
- name: Check for new artifact
Expand Down Expand Up @@ -168,7 +174,9 @@ jobs:
if [[ "${{ env.NAMEPREFIX }}" == "dxvk"* ]]; then
rm -rf "$folder/usr"
fi
tar -C "$folder" -zcvf "${{ env.NAME }}.tar.gz" .
mkdir "${{ env.NAME }}"
mv "$folder"/* "${{ env.NAME }}"
tar -zcvf "${{ env.NAME }}.tar.gz" "${{ env.NAME }}"
echo "UPLOAD_FILE=$(pwd)/${{ env.NAME }}.tar.gz" >> $GITHUB_ENV
- name: Upload component archive
Expand Down
4 changes: 0 additions & 4 deletions input_files/14-dxvk.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
dxvk-2.0-1-18b0ef6:
Category: dxvk
Channel: unstable
Date: '1671209496'
dxvk-2.0:
Category: dxvk
Channel: stable
Expand Down
20 changes: 0 additions & 20 deletions input_files/16-dxvk-nvapi.yml

This file was deleted.

3 changes: 2 additions & 1 deletion input_files/update_yml_entries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ GITHUB_ENV=${GITHUB_ENV-/dev/null}
command_wo_sub="{\"$component_name\": {\"Category\":\"$category\", \"Channel\": \"$channel\", \"Date\": \"$created_at\"}}"
command_w_sub="{\"$component_name\": {\"Category\":\"$category\", \"Sub-category\":\"$subcategory\", \"Channel\": \"$channel\", \"Date\": \"$created_at\"}}"

if ! [ -f "$filename" ]; then
empty_file=$(yq "." $filename)
if ! [ -f "$filename" ] || [ -z "$empty_file" ]; then
touch $filename
if [ -z "$subcategory" ]; then
yq -n -i -y "$command_wo_sub" $filename
Expand Down

0 comments on commit ffe27b6

Please sign in to comment.