Skip to content

Commit

Permalink
Merge branch 'main' into add_guanchayi_in_vendors
Browse files Browse the repository at this point in the history
  • Loading branch information
cartermp authored Dec 11, 2024
2 parents 06ddf13 + cd7a850 commit 9c53b8d
Show file tree
Hide file tree
Showing 362 changed files with 2,991 additions and 531 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/auto-update-community-members.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Auto-update community members page

on:
workflow_dispatch:
schedule:
# At 03:41, every day
- cron: 41 3 * * *

jobs:
auto-update-versions:
name: Auto-update community members page
runs-on: ubuntu-24.04
# Remove the if statement below when testing againt a fork
if: github.repository == 'open-telemetry/opentelemetry.io'
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '22'

- name: Install dependencies
working-directory: ./scripts/generate-community-data
run: npm install

- name: Run script
working-directory: ./scripts/generate-community-data
run: node generate.js ../../data/community/members.yaml
env:
GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}

- name: Create pull request
uses: peter-evans/create-pull-request@v7
with:
add-paths: 'data/community/members.yaml'
committer:
opentelemetrybot
<[email protected]>
token: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
branch: update-community-members
title: Update community members
body: |
This pull request contains automated updates to files by the GitHub Action.
30 changes: 20 additions & 10 deletions .github/workflows/scripts/update-registry-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,11 @@ for yaml_file in ${FILES}; do
echo "${yaml_file}: Package name and/or registry are missing in the YAML file."
else
# Get latest version
latest_version=$(get_latest_version "$name" "$registry")
latest_version=$(get_latest_version "$name" "$registry" || echo "Could not fetch version.")

if [ "$latest_version" == "Registry not supported." ]; then
if [ "$latest_version" == "Could not fetch version." ]; then
echo "${yaml_file} ($registry): Registry not supported.";
elif [ "$latest_version" == "Registry not supported." ]; then
echo "${yaml_file} ($registry): Registry not supported.";
elif [ -z "$latest_version" ]; then
echo "${yaml_file} ($registry): Could not get latest version from registry."
Expand Down Expand Up @@ -118,14 +120,22 @@ if [ "$existing_pr_count" -gt 0 ]; then
exit 0
fi

$NPM run fix:format
if [[ -n $(git status --porcelain) ]]; then
echo "Versions have been updated, formatting and pushing changes."

$NPM run fix:format

$GIT checkout -b "$branch"
$GIT commit -a -m "$message"
$GIT push --set-upstream origin "$branch"

$GIT checkout -b "$branch"
$GIT commit -a -m "$message"
$GIT push --set-upstream origin "$branch"
body_file=$(mktemp)
echo -en "${body}" >> "${body_file}"

body_file=$(mktemp)
echo -en "${body}" >> "${body_file}"
echo "Submitting auto-update PR '$message'."
$GH pr create --title "$message" --body-file "${body_file}"

echo "Submitting auto-update PR '$message'."
$GH pr create --title "$message" --body-file "${body_file}"
else
echo "No changes detected."
exit 0
fi
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
[submodule "content-modules/semantic-conventions"]
path = content-modules/semantic-conventions
url = https://github.com/open-telemetry/semantic-conventions
semconv-pin = v1.28.0
semconv-pin = v1.29.0
[submodule "content-modules/opamp-spec"]
path = content-modules/opamp-spec
url = https://github.com/open-telemetry/opamp-spec
Expand Down
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
!/layouts/shortcodes
/layouts/shortcodes/*
!/layouts/shortcodes/docs
/layouts/shortcodes/pt
!/layouts/shortcodes/es
!/layouts/shortcodes/pt

/content/ja
/content/zh
Expand Down
23 changes: 23 additions & 0 deletions assets/scss/_registry.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,26 @@
.registry-entry {
@extend .shadow;
}

#searchForm .btn.btn-outline-success,
.btn-outline-danger,
.btn-outline-secondary {
&:hover {
color: var(--bs-white);
}
}

@include color-mode(dark) {
@media (prefers-color-scheme: dark) {
.border-default {
border-color: #a3a3a3;
}
.card.registry-entry {
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8) !important;
}
.card.registry-entry,
.list-group > .list-group-item {
background-color: #262d2c;
}
}
}
2 changes: 1 addition & 1 deletion content-modules/semantic-conventions
Loading

0 comments on commit 9c53b8d

Please sign in to comment.