From 902b35e18932bb38e8f21574fd66d9f77cf14b27 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Fri, 28 Oct 2022 10:02:38 +0200 Subject: [PATCH] git: Fix downloading artifacts in steam deploy job --- .github/workflows/build.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 05d03ce4a..21edac7d9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -533,6 +533,7 @@ jobs: runs-on: ubuntu-latest name: 🚀 Steam Deployment Nightly + if: github.event_name == 'push' && github.repository == 'WerWolv/ImHex' && github.ref == 'refs/heads/master' steps: - name: 🧰 Checkout uses: actions/checkout@v3 @@ -547,9 +548,8 @@ jobs: - name: ⬇️ Download artifacts from latest workflow uses: dawidd6/action-download-artifact@v2 with: - github_token: ${{secrets.GITHUB_TOKEN}} - workflow: build.yml - branch: ${{ github.event.release.target_commitish }} + github_token: ${{ secrets.GITHUB_TOKEN }} + commit: ${{ github.event.pull_request.head.sha }} workflow_conclusion: success skip_unpack: true @@ -566,14 +566,12 @@ jobs: mv linux/imhex-${{env.IMHEX_VERSION}}.AppImage linux/imhex.AppImage - name: 🗝️ Generate Steam TOTP - if: github.event_name == 'push' && github.repository == 'WerWolv/ImHex' && github.ref == 'refs/heads/master' uses: CyberAndrii/steam-totp@v1 id: steam-totp with: shared_secret: ${{ secrets.STEAM_SHARED_SECRET }} - name: 💨 Publish Steam Nightly - if: github.event_name == 'push' && github.repository == 'WerWolv/ImHex' && github.ref == 'refs/heads/master' uses: game-ci/steam-deploy@main with: username: ${{ secrets.STEAM_USERNAME }}