-
Notifications
You must be signed in to change notification settings - Fork 895
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into getter-get-duplicates
- Loading branch information
Showing
18 changed files
with
391 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Update Schema files at OpenTelemetry Website | ||
|
||
on: | ||
# triggers only on a manual dispatch | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/[email protected] | ||
- name: make-pr | ||
env: | ||
API_TOKEN_GITHUB: ${{secrets.DOC_UPDATE_TOKEN}} | ||
# Destination repo should always be 'open-telemetry/opentelemetry.io' | ||
DESTINATION_REPO: open-telemetry/opentelemetry.io | ||
# Destination path should be the absolute path to directory to publish in | ||
DESTINATION_PATH: static/schemas | ||
# Source path should be 'schemas', all files and folders are copied from here to dest | ||
SOURCE_PATH: schemas | ||
run: | | ||
TARGET_DIR=$(mktemp -d) | ||
export GITHUB_TOKEN=$API_TOKEN_GITHUB | ||
git config --global user.name austinlparker | ||
git config --global user.email [email protected] | ||
git clone "https://[email protected]/$DESTINATION_REPO.git" "$TARGET_DIR" | ||
rsync -av --delete "$SOURCE_PATH/" "$TARGET_DIR/$DESTINATION_PATH/" | ||
cd "$TARGET_DIR" | ||
git checkout -b schemas-$GITHUB_REPOSITORY-$GITHUB_SHA | ||
git add . | ||
git commit -m "Schemas update from $GITHUB_REPOSITORY" | ||
git push -u origin HEAD:schemas-$GITHUB_REPOSITORY-$GITHUB_SHA | ||
gh pr create -t "Schemas Update from $GITHUB_REPOSITORY" -b "This is an automated pull request." -B main -H schemas-$GITHUB_REPOSITORY-$GITHUB_SHA | ||
echo "done" |
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 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 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 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,6 @@ | ||
file_format: 1.0.0 | ||
schema_url: https://opentelemetry.io/schemas/1.6.1 | ||
versions: | ||
1.6.1: | ||
1.5.0: | ||
1.4.0: |
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 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 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 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 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 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 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 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
Oops, something went wrong.