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
16 changes: 13 additions & 3 deletions .github/actions/export-load-balancer-tokens/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,19 @@ runs:

export_var() {
local name="$1"
local value="$2"
if [ -n "${value:-}" ]; then
echo "${name}=${value}" >>"${GITHUB_ENV}"
local value="${2-}"
if [ -z "${value}" ]; then
return 0
fi

if [[ "${value}" == *$'\n'* ]]; then
{
echo "${name}<<EOF"
printf '%s\n' "${value}"
echo "EOF"
} >>"${GITHUB_ENV}"
else
printf '%s=%s\n' "${name}" "${value}" >>"${GITHUB_ENV}"
fi
}

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/agents-auto-pilot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ jobs:
uses: actions/checkout@v6

- name: Export load balancer tokens
if: steps.check_enabled.outputs.enabled == 'true'
uses: ./.github/actions/export-load-balancer-tokens
with:
github_token: ${{ github.token }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/health-70-validate-sync-manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -231,16 +231,16 @@ jobs:

This PR modifies files that should be synced to consumer repos, but the sync manifest is incomplete.

**Required action:** Update \.github/sync-manifest.yml\ to include the new/modified files.
**Required action:** Update `.github/sync-manifest.yml` to include the new/modified files.

### Why this matters
Files not declared in the manifest won't be synced to consumer repos (Template, Manager-Database, trip-planner, Travel-Plan-Permission), causing features to silently not work in those repos.

### How to fix
1. Open \.github/sync-manifest.yml\
1. Open `.github/sync-manifest.yml`
2. Add your new files to the appropriate section (workflows, prompts, scripts, etc.)
3. Include a \description\ explaining what the file does
4. If the file should NOT be synced, add it to \excluded:\ with a reason
3. Include a `description` explaining what the file does
4. If the file should NOT be synced, add it to `excluded:` with a reason

See the workflow logs for specific files that need to be added.`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,19 @@ runs:

export_var() {
local name="$1"
local value="$2"
if [ -n "${value:-}" ]; then
echo "${name}=${value}" >>"${GITHUB_ENV}"
local value="${2-}"
if [ -z "${value}" ]; then
return 0
fi

if [[ "${value}" == *$'\n'* ]]; then
{
echo "${name}<<EOF"
printf '%s\n' "${value}"
echo "EOF"
} >>"${GITHUB_ENV}"
else
printf '%s=%s\n' "${name}" "${value}" >>"${GITHUB_ENV}"
fi
}

Expand Down
Loading