Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions .github/workflows/sync-lightspeed-configs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,12 @@ jobs:
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"

- name: Sync Lightspeed Core config files
run: ./hack/sync-lightspeed-configs.sh --ref ${{ matrix.branch }}
run: |
if [[ "${{ matrix.branch }}" == "release-1.10" ]]; then
./hack/sync-lightspeed-configs.sh --repo redhat-ai-dev/lightspeed-configs --ref ${{ matrix.branch }}
else
./hack/sync-lightspeed-configs.sh --ref ${{ matrix.branch }}
Comment thread
rm3l marked this conversation as resolved.
fi

- name: Check for changes
id: changes
Expand Down Expand Up @@ -127,6 +132,11 @@ jobs:
run: |
TITLE="chore(intelligent-assistant): sync Lightspeed Core config files and bump chart to ${NEW_VERSION}"
BRANCH="chore/sync-lightspeed-configs-${TARGET_BRANCH}"
TARGET_REPO="redhat-developer/rhdh-intelligent-assistant-configs"

if [[ "${TARGET_BRANCH}" == "release-1.10" ]]; then
TARGET_REPO="redhat-ai-dev/lightspeed-configs"
fi

EXISTING_PR=$(gh pr list --head "${BRANCH}" --base "${TARGET_BRANCH}" --state open --json number --jq '.[0].number // empty')

Expand All @@ -148,7 +158,7 @@ jobs:
SYNCED_FILES=$(git diff --name-only HEAD~1 -- "${FILES_DIR}" | sed 's/^/- `/;s/$/`/')

BODY=$(cat <<EOF
Automated nightly sync of Lightspeed Core config files from [redhat-ai-dev/lightspeed-configs @ ${TARGET_BRANCH}](https://github.com/redhat-ai-dev/lightspeed-configs/tree/${TARGET_BRANCH}).
Automated nightly sync of Lightspeed Core config files from [${TARGET_REPO} @ ${TARGET_BRANCH}](https://github.com/${TARGET_REPO}/tree/${TARGET_BRANCH}).

Bumped chart version to **${NEW_VERSION}**.

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Before making a contribution to the charts in this repository, you will need to

## Sync Lightspeed Core vendored config files

The Lightspeed Core config files under [`charts/rhdh/files/intelligent-assistant`](./charts/rhdh/files/intelligent-assistant) are synced from the upstream [redhat-ai-dev/lightspeed-configs](https://github.com/redhat-ai-dev/lightspeed-configs) repository by [`hack/sync-lightspeed-configs.sh`](./hack/sync-lightspeed-configs.sh).
The Lightspeed Core config files under [`charts/rhdh/files/intelligent-assistant`](./charts/rhdh/files/intelligent-assistant) are synced from the upstream [redhat-developer/rhdh-intelligent-assistant-configs](https://github.com/redhat-developer/rhdh-intelligent-assistant-configs) repository by [`hack/sync-lightspeed-configs.sh`](./hack/sync-lightspeed-configs.sh).

Use the default upstream branch:

Expand Down
2 changes: 1 addition & 1 deletion hack/sync-lightspeed-configs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -euo pipefail

DEFAULT_REPO="redhat-ai-dev/lightspeed-configs"
DEFAULT_REPO="redhat-developer/rhdh-intelligent-assistant-configs"
DEFAULT_REF="main"

SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
Expand Down
Loading