From b37acd6fcd93d669c0dde5742c02af691e3db363 Mon Sep 17 00:00:00 2001 From: spvkgn Date: Wed, 14 Aug 2024 12:37:01 +0500 Subject: [PATCH] fix --- .github/workflows/build-ci.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-ci.yml b/.github/workflows/build-ci.yml index 6266341..08f763d 100644 --- a/.github/workflows/build-ci.yml +++ b/.github/workflows/build-ci.yml @@ -27,10 +27,12 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} shell: bash run: | - { - echo "version=$(gh api repos/$REPO/releases/latest --jq '.tag_name' | sed 's/v//')" - echo "sha=$(echo ${GITHUB_SHA::7})" - } >> $GITHUB_OUTPUT + echo "version=$(gh api repos/$REPO/releases/latest --jq '.tag_name' | sed 's/v//')" >> $GITHUB_OUTPUT + if [[ "${{ github.event_name }}" != "pull_request" ]]; then + echo "sha=$(echo ${GITHUB_SHA::7})" >> $GITHUB_OUTPUT + else + echo "sha=$(gh api repos/$REPO/commits/main --jq '.sha[:7]')" >> $GITHUB_OUTPUT + fi build-static: needs: prepare @@ -261,7 +263,7 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} automatic_release_tag: 'continuous' prerelease: true - title: "Development Build" + title: 'Development build' files: | ./**/youtubeUnblock*.ipk ./**/youtubeUnblock*.tar.xz