Skip to content

Commit

Permalink
only take run IDs that have success status
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Wiesinger <[email protected]>
  • Loading branch information
mowies committed Nov 12, 2024
1 parent 51f2684 commit 0a77e12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/base-ci-goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
run: |
run_id=$(gh run list --branch main --workflow build-and-test --repo open-telemetry/opentelemetry-collector-contrib --limit 1 --json databaseId --jq '.[0].databaseId')
run_id=$(gh run list --branch main --workflow build-and-test --repo open-telemetry/opentelemetry-collector-contrib --limit 1 --status success --json databaseId --jq '.[0].databaseId')
echo "run_id=$run_id" >> "$GITHUB_OUTPUT"
- run: mkdir -p distributions/otelcol-contrib/artifacts
Expand Down

0 comments on commit 0a77e12

Please sign in to comment.