From 0a679ea41c35d059fe2c505af77a28ee99e86a0c Mon Sep 17 00:00:00 2001 From: Vadim Vetrov Date: Thu, 29 Aug 2024 18:13:51 +0300 Subject: [PATCH] Update version grabber --- .github/workflows/build-ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-ci.yml b/.github/workflows/build-ci.yml index 309f32f..aca7cde 100644 --- a/.github/workflows/build-ci.yml +++ b/.github/workflows/build-ci.yml @@ -18,6 +18,11 @@ jobs: version: ${{ steps.gh.outputs.version }} sha: ${{ steps.gh.outputs.sha }} steps: + - name: Checkout + uses: actions/checkout@v4 + with: + ref: 'openwrt' + - name: GH id: gh env: @@ -25,7 +30,7 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} shell: bash run: | - echo "version=$(gh api repos/$REPO/releases/latest --jq '.tag_name' | sed 's/v//')" >> $GITHUB_OUTPUT + echo "version=$(cat youtubeUnblock/Makefile | grep PKG_VERSION | sed 's/PKG_VERSION:=//')" >> $GITHUB_OUTPUT if [[ "${{ github.event_name }}" != "pull_request" ]]; then echo "sha=$(echo ${GITHUB_SHA::7})" >> $GITHUB_OUTPUT else