Skip to content

Commit

Permalink
Updating output
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffpatton1971 committed Jan 18, 2024
1 parent 0eb8b59 commit a82889d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,30 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

---

## [[0.0.1.7]](https://github.com/mod-posh/GetProjectVersion/releases/tag/v0.0.1.7) - 2024-01-18

Warning: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: [GitHub Actions: Deprecating save-state and set-output commands](https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/)

### Unsupported

```yml
- name: Set output
run: echo "::set-output name={name}::{value}"
```
### Supported
```yml
- name: Set output
run: echo "{name}={value}" >> $GITHUB_OUTPUT
```
What's Changed:
1. Updated action.yml with new output format
---
## [[0.0.1.6]](https://github.com/mod-posh/GetProjectVersion/releases/tag/v0.0.1.6) - 2024-01-18
BUGFIX: Wasn't capturing env:VERBOSE
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ There are a few different ways you could use this action; here is an example of
```yaml
jobs:
GetVersion:
uses: mod-posh/[email protected].6
uses: mod-posh/[email protected].7
with:
Filename: '"MyModule.psd1"'
verbose: 'verbose'
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ runs:
VERBOSE: ${{ inputs.verbose }}
run: |
$Version = & $env:GITHUB_ACTION_PATH\\getprojectversion.ps1 -Filename ${{ inputs.Filename }}
echo "::set-output name=Version::$Version"
echo "{Version}={$Version}" >> $GITHUB_OUTPUT
shell: pwsh
id: GetProjectVersion

0 comments on commit a82889d

Please sign in to comment.