Skip to content

Commit

Permalink
another one
Browse files Browse the repository at this point in the history
  • Loading branch information
kMutagene committed Feb 23, 2024
1 parent 9c9ebb7 commit f767528
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-pending-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
- name: decide on dry run
run: |
if [[ ${{ github.event_name == 'workflow_dispatch' }} == true ]]; then
SCRIPTARGS=${{ inputs.dry-run }}
SCRIPTARGS='--dry-run'
echo "SCRIPTARGS=SCRIPTARGS" >> $GITHUB_ENV
fi
- run: dotnet fsi scripts/publish-pending-packages.fsx {{ env.SCRIPTARGS }}
- run: dotnet fsi scripts/publish-pending-packages.fsx ${{ env.SCRIPTARGS }}
env:
APIKEY: ${{ secrets.APIKEY }}
7 changes: 7 additions & 0 deletions scripts/publish-pending-packages.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ open System.Text.Json
open dotenv.net
open System.Security.Cryptography

printfn "script args:"

for arg in fsi.CommandLineArgs do
printfn $" {arg}"

printfn ""

let isDryRun = fsi.CommandLineArgs.Length > 1 && fsi.CommandLineArgs[1] = "--dry-run"

if isDryRun then
Expand Down

0 comments on commit f767528

Please sign in to comment.