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