Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/actions/create-draft-release-with-assets/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Create draft release with assets
description: Creates a draft GitHub release and attaches asset files found under the given paths
inputs:
asset-paths:
required: true
description: Comma-separated paths/globs passed to Get-ChildItem, e.g. "nugets/, powershellModules/, assets/"
runs:
using: composite
steps:
- name: Create draft release and attach assets
shell: pwsh
run: |
$paths = '${{ inputs.asset-paths }}' -split ',' | ForEach-Object { $_.Trim() }
$assets = (Get-ChildItem -Path $paths -File -Recurse).FullName
Write-Output "Assets to attach: $assets"
Write-Output "Creating draft release for ${{ github.event.repository.name }} ${{ github.ref_name }} at commit ${{ github.sha }}"
gh release create ${{ github.ref_name }} $assets -d -n "<!-- RELEASE PENDING -->" -t "${{ github.ref_name }}"
env:
GH_TOKEN: ${{ github.token }}
Loading