diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2383a62..93321fc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,12 @@ jobs: runs-on: ubuntu-latest if: ${{ github.ref_type=='tag' }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v2 + with: + # by default, it uses a depth of 1 + # this fetches all history so that we can read each commit + fetch-depth: 0 + ref: ${{ github.head_ref }} - run: | curl -L -o hiddify-core.tar.gz https://codeload.github.com/hiddify/hiddify-core/tar.gz/${{ github.ref_name }} HIDDIFY_CORE_WRT_HASH=$(sha256sum hiddify-core.tar.gz | cut -d' ' -f1)