From b6e3f8037b2b7a6c0fe6b85df0f2a97aca10ba44 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sat, 21 Dec 2024 14:27:23 +0100 Subject: [PATCH] build: workaround for tag builds The GitHub checkout action does weird stuff with tags which breaks `git describe`. This works around that so we get proper release builds on tag pushes. --- .github/workflows/build-syncthing.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/build-syncthing.yaml b/.github/workflows/build-syncthing.yaml index b84e91833..cea5efad5 100644 --- a/.github/workflows/build-syncthing.yaml +++ b/.github/workflows/build-syncthing.yaml @@ -153,6 +153,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + ref: ${{ github.ref }} # https://github.com/actions/checkout/issues/882 - uses: actions/setup-go@v5 with: @@ -209,6 +210,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + ref: ${{ github.ref }} # https://github.com/actions/checkout/issues/882 - uses: actions/setup-go@v5 with: @@ -260,6 +262,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + ref: ${{ github.ref }} # https://github.com/actions/checkout/issues/882 - uses: actions/setup-go@v5 with: @@ -390,6 +393,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + ref: ${{ github.ref }} # https://github.com/actions/checkout/issues/882 - uses: actions/setup-go@v5 with: @@ -459,6 +463,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + ref: ${{ github.ref }} # https://github.com/actions/checkout/issues/882 - uses: actions/setup-go@v5 with: @@ -507,6 +512,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + ref: ${{ github.ref }} # https://github.com/actions/checkout/issues/882 - uses: actions/checkout@v4 with: @@ -590,6 +596,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + ref: ${{ github.ref }} # https://github.com/actions/checkout/issues/882 - uses: actions/setup-go@v5 with: @@ -650,6 +657,7 @@ jobs: repository: syncthing/release-tools path: tools fetch-depth: 0 + ref: ${{ github.ref }} # https://github.com/actions/checkout/issues/882 - name: Download artifacts uses: actions/download-artifact@v4 @@ -699,6 +707,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + ref: ${{ github.ref }} # https://github.com/actions/checkout/issues/882 - name: Download signed packages uses: actions/download-artifact@v4 @@ -764,6 +773,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + ref: ${{ github.ref }} # https://github.com/actions/checkout/issues/882 - name: Download packages uses: actions/download-artifact@v4 @@ -855,6 +865,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + ref: ${{ github.ref }} # https://github.com/actions/checkout/issues/882 - uses: actions/setup-go@v5 with: