Skip to content

Commit

Permalink
prepare workflow to download artifacts from contrib repo
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Wiesinger <[email protected]>
  • Loading branch information
mowies committed Oct 30, 2024
1 parent 138f0f0 commit 7e08c5f
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/base-ci-goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,20 @@ jobs:
go-version: '1.23'
check-latest: true

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

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

0 comments on commit 7e08c5f

Please sign in to comment.