From 15417dd2fed5c9b4bc0613cb788773b8a5a8290e Mon Sep 17 00:00:00 2001 From: Kevin Schneider Date: Fri, 23 Feb 2024 16:00:51 +0100 Subject: [PATCH] another one --- .github/workflows/publish-pending-packages.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-pending-packages.yml b/.github/workflows/publish-pending-packages.yml index 78ecc97..e6196e3 100644 --- a/.github/workflows/publish-pending-packages.yml +++ b/.github/workflows/publish-pending-packages.yml @@ -25,9 +25,10 @@ jobs: - name: decide on dry run run: | if [[ ${{ github.event_name == 'workflow_dispatch' }} == true ]]; then - SCRIPTARGS='--dry-run' - echo "SCRIPTARGS=SCRIPTARGS" >> $GITHUB_ENV + if [[ ${{ github.event.inputs.dry-run }} == true ]]; then + echo "DRYRUN=--dry-run" >> $GITHUB_ENV + fi fi - - run: dotnet fsi scripts/publish-pending-packages.fsx ${{ env.SCRIPTARGS }} + - run: dotnet fsi scripts/publish-pending-packages.fsx ${{ env.DRYRUN }} env: APIKEY: ${{ secrets.APIKEY }} \ No newline at end of file