@@ -77,12 +77,14 @@ jobs:
77
77
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')
78
78
echo "run_id=$run_id" >> "$GITHUB_OUTPUT"
79
79
80
- - run : mkdir -p distributions/otelcol-contrib/artifacts
80
+ - name : Create artifacts directory to store prebuilt artifacts
81
+ run : mkdir -p distributions/otelcol-contrib/artifacts
81
82
82
- - run : mkdir -p distributions/ otelcol-contrib/artifacts/otelcol-contrib_linux_amd64_v1
83
+ - name : Create sub-directory for otelcol-contrib nightly build
83
84
if : ${{ inputs.distribution == 'otelcol-contrib' && inputs.latest == true }}
85
+ run : mkdir -p distributions/otelcol-contrib/artifacts/otelcol-contrib_linux_amd64_v1
84
86
85
- - name : Download built otelcontribcol artifact from contrib repo
87
+ - name : Download built otelcol-contrib artifact from contrib repo
86
88
if : inputs.latest == true
87
89
uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
88
90
with :
91
93
github-token : ${{ secrets.GITHUB_TOKEN }}
92
94
run-id : ${{ steps.get-run-id.outputs.run_id }}
93
95
94
- - name : Rename downloaded artifact
96
+ - name : Move downloaded artifact
95
97
if : inputs.latest == true
96
98
run : mv otelcontribcol_linux_amd64 distributions/otelcol-contrib/artifacts/otelcol-contrib_linux_amd64_v1/otelcol-contrib
97
99
@@ -119,8 +121,8 @@ jobs:
119
121
- if : ${{ inputs.distribution == 'otelcol-contrib' && inputs.latest != true }}
120
122
run : mv distributions/otelcol-contrib/dist/**/* distributions/otelcol-contrib/artifacts/
121
123
122
- - run : ls -laR distributions/ otelcol-contrib/artifacts
123
- if : ${{ inputs.distribution == ' otelcol-contrib' }}
124
+ - if : ${{ inputs.distribution == ' otelcol-contrib' }}
125
+ run : ls -laR distributions/ otelcol-contrib/artifacts
124
126
125
127
- name : Run GoReleaser for ${{ inputs.distribution }}
126
128
uses : goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0
0 commit comments