Skip to content

publish pending packages #13

publish pending packages

publish pending packages #13

name: "publish pending packages"
on:
push:
branches: ['main']
paths:
- 'src/StagingArea/**'
workflow_dispatch:
inputs:
dry-run:
description: 'dry run mode'
required: true
default: true
type: boolean
jobs:
publish-pending-packages:
runs-on: ubuntu-latest
steps:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x.x
- uses: actions/checkout@v4
- name: decide on dry run
run: |
if [[ ${{ github.event_name == 'workflow_dispatch' }} == true ]]; then
SCRIPTARGS=${{ inputs.dry-run }}
echo "SCRIPTARGS=SCRIPTARGS" >> $GITHUB_ENV
fi
- run: dotnet fsi scripts/publish-pending-packages.fsx {{ env.SCRIPTARGS }}
env:
APIKEY: ${{ secrets.APIKEY }}