Skip to content

Commit

Permalink
Change the build-semconv-daily workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
trask committed Jan 24, 2025
1 parent 7cb1bd3 commit 6608409
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/build-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@ on:
description: Regex of submodule paths to update to HEAD before building.
default: content-modules
type: string
workflow_call:
inputs:
submodule_path_regex:
type: string
required: true
skip_ref_cache_check:
type: boolean
default: false

jobs:
build-and-test:
Expand Down Expand Up @@ -60,7 +52,6 @@ jobs:
name: REFCACHE updates?
needs: build-and-test
runs-on: ubuntu-latest
if: ${{ !inputs.skip_ref_cache_check }}
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
Expand Down
39 changes: 22 additions & 17 deletions .github/workflows/build-semconv-daily.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Semantic Conventions (daily)
name: Update semconv-latest branch (daily)

on:
schedule:
Expand All @@ -7,20 +7,25 @@ on:
workflow_dispatch:

jobs:
build-dev:
uses: ./.github/workflows/build-dev.yml
with:
submodule_path_regex: semantic-conventions
skip_ref_cache_check: true
update-semconv-latest-branch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# TODO (trask) may need to use OPENTELEMETRYBOT_GITHUB_TOKEN in order for PR workflows to get triggered
ref: semconv-latest

workflow-notification:
needs:
- build-dev
if: always()
uses: ./.github/workflows/reusable-workflow-notification.yml
with:
success: ${{ needs.build-dev.result == 'success' }}
repo: open-telemetry/semantic-conventions
secrets:
opentelemetrybot_github_token:
${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
- name: Use CLA approved github bot
run: .github/workflows/scripts/use-cla-approved-github-bot.sh

- name: Rebase
run: |
git fetch origin
git rebase origin/main
git push origin semconv-latest
- name: Update semconv submodule
run: |
git submodule update --init --remote content-modules/semantic-conventions
git commit -am "Update semconv submodule"
git push origin semconv-latest
4 changes: 4 additions & 0 deletions .github/workflows/scripts/use-cla-approved-github-bot.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash -e

git config user.name opentelemetrybot
git config user.email [email protected]

0 comments on commit 6608409

Please sign in to comment.