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 25, 2025
1 parent 7cb1bd3 commit 970d79e
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 94 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
26 changes: 0 additions & 26 deletions .github/workflows/build-semconv-daily.yml

This file was deleted.

59 changes: 0 additions & 59 deletions .github/workflows/reusable-workflow-notification.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/update-semconv-integration-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Update semconv integration branch

on:
schedule:
# daily at 10:24 UTC
- cron: '24 10 * * *'
workflow_dispatch:

jobs:
update-semconv-integration-branch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: integration/semantic-conventions
# this is needed in order to do rebase below
fetch-depth: 0
# this is needed in order to trigger workflows on the PR
repo-token: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}

- name: Use CLA approved github bot
run: |
git config user.name opentelemetrybot
git config user.email [email protected]
- name: Rebase
run: |
previous=$(git rev-parse HEAD)
git fetch origin
git merge origin/main
if [ "$(git rev-parse HEAD)" != "$previous" ]; then
git push origin integration/semantic-conventions
fi
- name: Update submodule
run: |
git submodule update --init --remote content-modules/semantic-conventions
if ! git diff-index --quiet HEAD; then
git commit -am "Update submodule"
git push origin integration/semantic-conventions
fi

0 comments on commit 970d79e

Please sign in to comment.