diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0caf066..008e7f0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -35,7 +35,7 @@ jobs: make -j $(nproc) - uses: actions/upload-artifact@v2 with: - name: ${{ github.event.repository.name }}-linux-arm64-${{ github.event.pull_request.number || github.sha::8 }} + name: ${{ github.event.repository.name }}-linux-arm64-${{ github.event.pull_request.number || github.sha }} path: | bin/* @@ -63,7 +63,7 @@ jobs: make -j $(nproc) - uses: actions/upload-artifact@v2 with: - name: ${{ github.event.repository.name }}-linux-armhf-${{ github.event.pull_request.number || github.sha::8 }} + name: ${{ github.event.repository.name }}-linux-armhf-${{ github.event.pull_request.number || github.sha }} path: | bin/* @@ -83,7 +83,7 @@ jobs: make -j $(nproc) - uses: actions/upload-artifact@v2 with: - name: ${{ github.event.repository.name }}-linux-x64-${{ github.event.pull_request.number || github.sha::8 }} + name: ${{ github.event.repository.name }}-linux-x64-${{ github.event.pull_request.number || github.sha }} path: | bin/* @@ -107,7 +107,7 @@ jobs: ./dpf/utils/package-osx-bundles.sh - uses: actions/upload-artifact@v2 with: - name: ${{ github.event.repository.name }}-macOS-universal-${{ github.event.pull_request.number || github.sha::8 }} + name: ${{ github.event.repository.name }}-macOS-universal-${{ github.event.pull_request.number || github.sha }} path: | *-macOS.pkg bin/* @@ -138,7 +138,7 @@ jobs: make -j $(nproc) - uses: actions/upload-artifact@v2 with: - name: ${{ github.event.repository.name }}-win32-${{ github.event.pull_request.number || github.sha::8 }} + name: ${{ github.event.repository.name }}-win32-${{ github.event.pull_request.number || github.sha }} path: | bin/* !bin/*-ladspa.dll @@ -162,9 +162,12 @@ jobs: WINEDEBUG: "-all" run: | make -j $(nproc) + - name: Get short SHA + id: slug + run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)" - uses: actions/upload-artifact@v2 with: - name: ${{ github.event.repository.name }}-win64-${{ github.event.pull_request.number || github.sha::8 }} + name: ${{ github.event.repository.name }}-win64-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }} path: | bin/* !bin/*-ladspa.dll