Skip to content

Commit 5ee3c7e

Browse files
authored
Fix daily semconv build workflow (#6034)
1 parent 23b153a commit 5ee3c7e

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/build-semconv-daily.yml

+3
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ jobs:
2020
with:
2121
success: ${{ needs.build-dev.result == 'success' }}
2222
repo: open-telemetry/semantic-conventions
23+
secrets:
24+
opentelemetrybot_github_token:
25+
${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}

.github/workflows/reusable-workflow-notification.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
repo:
1212
type: string
1313
required: false
14+
secrets:
15+
opentelemetrybot_github_token:
16+
type: string
17+
required: false
1418

1519
jobs:
1620
workflow-notification:
@@ -20,10 +24,9 @@ jobs:
2024

2125
- name: Open issue or add comment if issue already open
2226
env:
23-
# need to use opentelemetrybot for opening issues in other repos
27+
# need to use opentelemetrybot token when opening issues in other repos
2428
GH_TOKEN:
25-
${{ inputs.repo && secrets.OPENTELEMETRYBOT_GITHUB_TOKEN ||
26-
secrets.GITHUB_TOKEN }}
29+
${{ secrets.opentelemetrybot_github_token || secrets.GITHUB_TOKEN }}
2730
run: |
2831
if [ -z "${{ inputs.repo }}" ]; then
2932
repo="$GITHUB_REPOSITORY"

0 commit comments

Comments
 (0)