Skip to content

Commit e82c692

Browse files
committed
Fix daily semconv build workflow
1 parent c81613f commit e82c692

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

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

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

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

+6-4
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,8 @@ 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
24-
GH_TOKEN:
25-
${{ inputs.repo && secrets.OPENTELEMETRYBOT_GITHUB_TOKEN ||
26-
secrets.GITHUB_TOKEN }}
27+
# need to use opentelemetrybot token when opening issues in other repos
28+
GH_TOKEN: ${{ secrets.opentelemetrybot_github_token || secrets.GITHUB_TOKEN }}
2729
run: |
2830
if [ -z "${{ inputs.repo }}" ]; then
2931
repo="$GITHUB_REPOSITORY"

0 commit comments

Comments
 (0)