Skip to content

Commit 7e08c5f

Browse files
committed
prepare workflow to download artifacts from contrib repo
Signed-off-by: Moritz Wiesinger <[email protected]>
1 parent 138f0f0 commit 7e08c5f

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/base-ci-goreleaser.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,20 @@ jobs:
6464
go-version: '1.23'
6565
check-latest: true
6666

67+
- name: Get latest finished run ID from contrib repo build-and-test
68+
id: get-run-id
69+
run: |
70+
run_id=$(gh run list --branch main --workflow build-and-test --repo open-telemetry/opentelemetry-collector-contrib --limit 1 --json databaseId)
71+
echo "run_id=$run_id" >> "$GITHUB_OUTPUT"
72+
6773
- name: Generate the sources using latest main for ${{ inputs.distribution }}
6874
if: inputs.latest == true
69-
env:
70-
DISTRIBUTIONS: ${{ inputs.distribution }}
71-
run: make generate-sources-dev
75+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
76+
with:
77+
name: collector-binaries-linux-amd64
78+
repository: open-telemetry/opentelemetry-collector-contrib
79+
github-token: ${{ secrets.GITHUB_TOKEN }}
80+
run-id: ${{ steps.get-run-id.run_id }}
7281

7382
- name: Generate the sources for ${{ inputs.distribution }}
7483
if: inputs.latest != true

0 commit comments

Comments
 (0)