Skip to content

Commit

Permalink
CI: Fix broken download of nightly build artifacts for Steam uploads
Browse files Browse the repository at this point in the history
GitHub's CLI utility is not capable of downloading artifacts generated
by the workflow job it is being run in itself. Thus the official
repository action is needed.
  • Loading branch information
PatTheMav authored and derrod committed Jul 21, 2023
1 parent 64be5a7 commit 07d0da1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/actions/steam-upload/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ runs:
print "::error:steam-upload action can only be used with 'release', 'workflow-dispatch', or 'schedule' events."
exit 2
- name: Download Nightly Assets 🌙
id: asset-info-nightly
uses: actions/download-artifact@v3
if: github.event_name == 'schedule'

- name: Download Assets 📥
id: asset-info
shell: zsh --no-rcs --errexit --pipefail {0}
Expand Down Expand Up @@ -140,16 +145,12 @@ runs:
}
;;
schedule)
gh run download ${GITHUB_RUN_ID} \
--pattern '*macos*' \
--pattern '*windows*'
local short_hash="${GITHUB_SHA:0:9}"
mv obs-studio-windows-x64-${short_hash}/obs-studio-*-windows-x64.zip \
${root_dir}
mv obs-studio-macos-arm64-${short_hash}/obs-studio-*-macos-apple.dmg \
${root_dir}
mv obs-studio-macos-intel-${short_hash}/obs-studio-*-macos-intel.dmg \
mv obs-studio-macos-x86_64-${short_hash}/obs-studio-*-macos-intel.dmg \
${root_dir}
description="g${GITHUB_SHA}"
Expand Down

0 comments on commit 07d0da1

Please sign in to comment.