mirror of
https://github.com/hwchase17/langchain.git
synced 2026-07-28 10:24:25 +00:00
fix(ci): repair model profile refresh workflow expressions (#39095)
#39094 left the model profile refresh workflow invalid, so it failed immediately on push with no jobs (e.g. https://github.com/langchain-ai/langchain/actions/runs/30287294147). --- GitHub Actions expressions only allow single-quoted string literals. The new job condition used double quotes: ```yaml if: github.repository_owner == "langchain-ai" ``` That failed workflow validation before any job could start: > Unexpected symbol: `"langchain-ai"` Also switched the hyphenated input to bracket access so `providers-override` is not parsed as subtraction (`inputs.providers - override`).
This commit is contained in:
5
.github/workflows/refresh_model_profiles.yml
vendored
5
.github/workflows/refresh_model_profiles.yml
vendored
@@ -45,7 +45,7 @@ permissions:
|
||||
jobs:
|
||||
resolve-providers:
|
||||
name: resolve providers
|
||||
if: github.repository_owner == "langchain-ai"
|
||||
if: github.repository_owner == 'langchain-ai'
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
providers: ${{ steps.resolve.outputs.providers }}
|
||||
@@ -57,7 +57,8 @@ jobs:
|
||||
env:
|
||||
# Scheduled runs have no inputs — default to all providers.
|
||||
PROVIDER: ${{ github.event_name == 'workflow_dispatch' && inputs.provider || 'all' }}
|
||||
PROVIDERS_OVERRIDE: ${{ github.event_name == 'workflow_dispatch' && inputs.providers-override || '' }}
|
||||
# Bracket access required: bare `inputs.providers-override` is parsed as subtraction.
|
||||
PROVIDERS_OVERRIDE: ${{ github.event_name == 'workflow_dispatch' && inputs['providers-override'] || '' }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
|
||||
Reference in New Issue
Block a user