forked from open-telemetry/opentelemetry.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the build-semconv-daily workflow
- Loading branch information
Showing
4 changed files
with
41 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |