From 7119599033095fe8ca3c3fb489c93e222eef54ba Mon Sep 17 00:00:00 2001 From: Martijn Laarman Date: Tue, 12 Dec 2023 14:03:46 +0100 Subject: [PATCH] Fix attaching profiler to GitHub releases Use full file paths instead of relying on globbing. --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 178eb067e..d25a1a2c1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -66,7 +66,7 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - gh release upload ${{ github.ref_name }} "build/output/ElasticApmAgent_*.zip" "build/output/elastic_apm_profiler_*.zip" + gh release upload ${{ github.ref_name }} "build/output/ElasticApmAgent_${{ steps.bootstrap.outputs.agent-version }}.zip" "build/output/elastic_apm_profiler_${{ steps.bootstrap.outputs.agent-version }}-linux-x64.zip" - if: ${{ success() }} uses: elastic/apm-pipeline-library/.github/actions/slack-message@current @@ -114,7 +114,7 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} continue-on-error: true #continue for now until we see it working in action run: | - gh release upload ${{ github.ref_name }} "build/output/elastic_apm_profiler_*.zip" + gh release upload ${{ github.ref_name }} "build/output/elastic_apm_profiler_${{ steps.bootstrap.outputs.agent-version }}-win-x64.zip" post-release: needs: [ 'release-windows']