Skip to content

chore(workflow): ⚡ update module specification in publish workflow #19

chore(workflow): ⚡ update module specification in publish workflow

chore(workflow): ⚡ update module specification in publish workflow #19

Workflow file for this run

name: Publish Module

Check failure on line 1 in .github/workflows/publish.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yaml

Invalid workflow file

(Line: 12, Col: 15): Expected format {org}/{repo}[/path]@ref. Actual 'JustinGrote/ModuleFast-action'
on:
push:
branches: [master]
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: ⚡ ModuleFast with Specification
uses: JustinGrote/ModuleFast-action
with:
specification: |
BuildHelpers
PowerShellBuild
psake
PSScriptAnalyzer
platyPS
- shell: pwsh
# Give an id to the step, so we can reference it later
id: check_if_versions_bumped
run: |
[version]$GalleryVersion = Get-NextNugetPackageVersion -Name Plaster -ErrorAction Stop
[version]$GithubVersion = Get-MetaData -Path ./Plaster/Plaster.psd1 -PropertyName ModuleVersion -ErrorAction Stop
$bumped = $GithubVersion -ge $GalleryVersion
# Set the output named "version_bumped"
Write-Host "::set-output name=version_bumped::$bumped"
# Only publish (from master) if versions
- name: Build and publish
if: steps.check_if_versions_bumped.outputs.version_bumped == 'True'
env:
PSGALLERY_API_KEY: ${{ secrets.GALLERY_KEY }}
shell: pwsh
run: |
./build.ps1 -Task Publish