Skip to content

Commit

Permalink
ci: PLT-608: Fix deploy input
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitabelonogov committed Dec 23, 2024
1 parent 1ef99ba commit da3d030
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cicd_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,20 +200,20 @@ jobs:
- uses: actions/github-script@v7
env:
DOCKER_IMAGE_VERSION: ${{ needs.build-docker.outputs.image_version }}
APP_NAME: ${{ startsWith(github.ref_name, 'ls-release/') && 'ls-release' || 'ls-develop' }}
RELEASE_NAME: ${{ startsWith(github.ref_name, 'ls-release/') && 'ls-release' || 'ls-develop' }}
with:
github-token: ${{ secrets.GIT_PAT }}
script: |
const docker_image_version = process.env.DOCKER_IMAGE_VERSION;
const app_name = process.env.APP_NAME;
const release_name = process.env.RELEASE_NAME;
github.rest.actions.createWorkflowDispatch({
owner: "HumanSignal",
repo: "label-studio-enterprise",
workflow_id: "argocd-deploy.yml",
ref: "develop",
inputs: {
docker_image_version: docker_image_version,
app_name: app_name,
release_name: release_name,
template_name: "lso",
}
});
Expand Down

0 comments on commit da3d030

Please sign in to comment.