From 8aacf08c71ea259bf124d3bd2e1de9f09ac7eb45 Mon Sep 17 00:00:00 2001 From: Maxim Prokhorov Date: Mon, 29 Aug 2022 21:34:51 +0300 Subject: [PATCH] ci: .github/ contents need to be fetched --- .github/workflows/release.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 95d6ef7c..a744b9a0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -112,12 +112,20 @@ jobs: - name: Unpack run: unzip -d binaries "artifacts/Binaries/*.zip" + - name: Fetch release template + run: | + curl \ + -H "Authentication: ${{ secrets.GITUB_TOKEN }}" \ + -H "Accept: application/vnd.github.VERSION.raw" \ + -o release_template.md \ + https://api.github.com/repos/xoseperez/espurna/contents/.github/release_template.md + - uses: ncipollo/release-action@v1 with: tag: github${{ needs.variables.outputs.date }} commit: ${{ needs.variables.outputs.dev }} name: Snapshot build (github${{ needs.variables.outputs.date }}) - bodyFile: ".github/release_template.md" + bodyFile: "release_template.md" artifacts: "binaries/*.bin" token: ${{ secrets.GITHUB_TOKEN }} prerelease: true