Skip to content

Commit

Permalink
ci: Fix test_mode flag in post_deploy_agent workflow (#2475)
Browse files Browse the repository at this point in the history
  • Loading branch information
tippmar-nr committed May 8, 2024
1 parent 3f06bf6 commit e66bf2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/post_deploy_agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
description: 'Run workflow in test mode. If set to true, the NugetVersionDeprecator will not create a GitHub issue.'
type: boolean
default: false
required: false
required: true
workflow_call:
inputs:
agent_version:
Expand Down Expand Up @@ -184,7 +184,7 @@ jobs:
- name: Build and Run NugetDeprecator
run: |
dotnet publish --configuration Release --output "$PUBLISH_PATH" "$BUILD_PATH"
"$PUBLISH_PATH/NugetVersionDeprecator" -c $PUBLISH_PATH/config.yml --github-token ${{ secrets.GITHUB_TOKEN }} --api-key ${{ secrets.NEW_RELIC_API_KEY_PRODUCTION }} --test-mode ${{ inputs.test_mode }}
"$PUBLISH_PATH/NugetVersionDeprecator" -c $PUBLISH_PATH/config.yml --github-token ${{ secrets.GITHUB_TOKEN }} --api-key ${{ secrets.NEW_RELIC_API_KEY_PRODUCTION }} ${{ inputs.test_mode && '--test-mode' || '' }}
shell: bash
env:
BUILD_PATH: ${{ github.workspace }}/build/NugetVersionDeprecator/NugetVersionDeprecator.csproj
Expand Down

0 comments on commit e66bf2c

Please sign in to comment.