diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1afb913..323ce44 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,9 +13,15 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 + env: + GITHUB_REF: ${{ github.ref }} + TOKEN: ${{ secrets.GITHUB_TOKEN }} + REPO: ${{ github.repository }} + SERVER_URL: ${{ github.server_url }} + run: | + TAG="${GITHUB_REF#refs/tags/}" + HOST="${SERVER_URL#https://}" + git clone --depth 1 --branch "$TAG" "https://x-access-token:${TOKEN}@${HOST}/${REPO}.git" . - name: Build payload env: