diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4bfa938..f23d212 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,7 +10,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 with: - fetch-depth: 0 + fetch-depth: 1 - name: Checkout Dependecies run: | @@ -18,16 +18,15 @@ jobs: git clone https://github.com/bucanero/ps3mapi-lib.git --depth 1 - name: Set env vars + id: slug run: | - ver="gh.$(git rev-list HEAD --count)" - echo "commit_ver=$ver" >> $GITHUB_ENV + echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)" echo "pkg_file=ArtemisPS3-GUI/ArtemisPS3-GUI.pkg" >> $GITHUB_ENV # using pre-compiled sdk - name: Download PSL1GHT Toolchain run: | curl -sL https://github.com/bucanero/ps3toolchain/releases/download/ubuntu-latest-fad3b5fb/ps3dev-ubuntu-latest-2020-08-31.tar.gz | tar xvz -C ./ - pwd echo "PS3DEV=${GITHUB_WORKSPACE}/ps3dev" >> $GITHUB_ENV echo "PSL1GHT=${GITHUB_WORKSPACE}/ps3dev" >> $GITHUB_ENV @@ -52,7 +51,7 @@ jobs: - name: Push package artifact uses: actions/upload-artifact@v3 with: - name: artemis-ps3-build_${{ env.commit_ver }} + name: artemis-ps3-build_${{ steps.slug.outputs.sha8 }} path: ${{ env.pkg_file }} if-no-files-found: error # don't keep artifacts for too long