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