diff --git a/.github/actions/extract-artifact/action.yml b/.github/actions/extract-artifact/action.yml index 8d9834cdf..94332ba10 100644 --- a/.github/actions/extract-artifact/action.yml +++ b/.github/actions/extract-artifact/action.yml @@ -7,6 +7,9 @@ inputs: artifact-name: description: "Name of the artifact to download" required: true + github-token: + description: "GitHub token for authentication" + required: true runs: using: "composite" steps: @@ -15,7 +18,7 @@ runs: with: ref: ${{ github.event.pull_request.head.sha || github.sha }} check-name: ${{ inputs.check-name }} - repo-token: ${{ secrets.GITHUB_TOKEN }} + repo-token: ${{ inputs.github-token }} wait-interval: 30 - name: Download workflow artifact @@ -26,12 +29,14 @@ runs: - name: Extract artifact (Linux) if: runner.os == 'Linux' + shell: bash run: | chmod +x lmms-*.AppImage ./lmms-*.AppImage --appimage-extract - name: Mount DMG (macOS) if: runner.os == 'macOS' + shell: bash run: | hdiutil attach lmms-*.dmg -mountpoint ~/tmpvolume cp -R ~/tmpvolume/LMMS.app /tmp/ diff --git a/.github/workflows/run-help.yml b/.github/workflows/run-help.yml index 805f0ef86..052fe2da4 100644 --- a/.github/workflows/run-help.yml +++ b/.github/workflows/run-help.yml @@ -26,6 +26,7 @@ jobs: with: check-name: linux-${{ matrix.config.arch }} artifact-name: linux${{ matrix.config.suffix }} + github-token: ${{ secrets.GITHUB_TOKEN }} - name: Display help run: | cd squashfs-root/ @@ -49,6 +50,7 @@ jobs: with: check-name: macos-${{ matrix.config.arch }} artifact-name: macos-${{ matrix.config.arch }} + github-token: ${{ secrets.GITHUB_TOKEN }} - name: Display help run: | /tmp/LMMS.app/Contents/MacOS/lmms --help | grep "Usage: lmms"