Sampler.GitHubTasks

0.4.0-preview0001

Sampler tasks for GitHub integrations

This is a prerelease version of Sampler.GitHubTasks.

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name Sampler.GitHubTasks -AllowPrerelease

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name Sampler.GitHubTasks -Prerelease

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) Gael Colas. All rights reserved.

Package Details

Author(s)

  • Gael Colas

Tags

Sampler build tasks InvokeBuild

Functions

Get-GHOwnerRepoFromRemoteUrl

Dependencies

Release Notes

## [0.4.0-preview0001] - 2026-02-11

### Added

- Created module with GitHub tasks from Sampler.
- Support to add assets to GitHub released by defining the `ReleaseAssets` key in `build.yml` GitHubConfig.
- Added logo.
- Added Get-GHOwnerRepoFromRemoteUrl function.
- Task `Publish_release_to_GitHub`
 - Added `BuildCommit` parameter for CI-aware commit resolution that automatically detects the actual built commit from CI environment variables (`GITHUB_SHA`, `BUILD_SOURCEVERSION`) or falls back to local `git rev-parse HEAD`.
 - Added `DryRun` parameter to simulate release creation without making actual changes, showing detailed information about what would be performed.

### Removed

- Removed GitHub Access Token from variable being displayed during build. Fixes Issue #17.

### Changed

- Fixed Erroring when "$ProjectName.$ModuleVersion.nupkg" is not available (i.e. when using asset list in `Build.yaml`).
- Fixed tasks to use the new Sampler version and its public functions.
- Fixed RootModule not loaded because of Module Manifest.
- Making this project use the prerelease version of Sampler for testing.
- Display GitHub Release info if already exists.
- GitHub New PR to use Owner/Repo name.
- Updated publish workflow in build.yml to Create GH PR upon release.
- Updated the Readme with the icon.
- Adding delay after creating release to make sure the tag is available at next git pull.
- Updating when to skip the Create Changelog PR task (adding -ListAvailable).
- Task `Publish_release_to_GitHub`
 - Removed unnecessary code line ([issue #22](https://github.com/gaelcolas/Sampler.GitHubTasks/issues/22)).
 - Now the command `New-GitHubRelease` only outputs verbose information
   if `$VerbosePreference` says so.
 - Fixed to use the actual built commit instead of latest commit on main branch, improving traceability and preventing CI pipeline conflicts.
 - Disable Publish_GitHub_Wiki_Content task.
 - Fix PSGallery preview badge.

### Fixed

- Fixed task error when the PackageToRelease does not exist (i.e. it's not a module being built creating the .nupkg).
- Fixed typo when adding debug output for GH task.
- Fixed using the `Set-SamplerTaskVariable` in GH tasks.
- Fixed the Azure DevOps pipeline to build on Ubuntu latest and Windows latest.
- Fixed adding a release when GitHub immutable releases are enabled. ([gaelcolas/Sampler#542](https://github.com/gaelcolas/Sampler/issues/542)).

FileList

Version History

Version Downloads Last updated
0.4.0-previe... (current version) 509 2/11/2026
0.3.5-previe... 52,952 6/8/2022
0.3.5-previe... 2,453 1/25/2022
0.3.4 56,429 1/25/2022
0.3.4-previe... 12 1/25/2022
0.3.3 869 11/8/2021
0.3.3-previe... 11 11/8/2021
0.3.2-previe... 38 9/29/2021
0.3.1 661 8/31/2021
0.3.1-previe... 11 8/31/2021
0.3.0 955 7/2/2021
0.3.0-previe... 12 7/2/2021
0.2.6 2,620 3/18/2021
0.2.5-previe... 16 3/17/2021
0.2.4 75 3/10/2021
0.2.4-previe... 16 3/10/2021
0.2.3 17 3/10/2021
0.2.3-previe... 15 3/10/2021
0.2.3-previe... 14 3/10/2021
0.2.3-previe... 14 3/10/2021
0.2.2 30 3/9/2021
0.2.2-previe... 26 3/9/2021
0.2.2-previe... 14 3/9/2021
0.2.2-previe... 14 3/9/2021
0.2.2-previe... 14 3/9/2021
0.2.2-previe... 14 3/9/2021
0.2.2-previe... 14 3/9/2021
0.2.2-previe... 14 3/8/2021
0.2.2-previe... 14 3/8/2021
0.2.2-previe... 14 3/8/2021
0.2.1 18 3/8/2021
0.2.1-previe... 14 3/8/2021
0.2.0 29 3/8/2021
0.2.0-previe... 15 3/8/2021
0.2.0-previe... 14 3/8/2021
Show more