Skip to content

Commit 462ed6f

Browse files
authored
Merge pull request #11 from ZEISS-PiWeb/feature/Update_output_setting
fix: Closes #10 by updating deprecated set-output
2 parents b5ac181 + fe32de2 commit 462ed6f

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/feature-branch.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
# Remove "/fix".
3535
noFix="${noFeature/fix/}"
3636
# Shorten name to 20 characters. Set it as output of the name "branch_name".
37-
echo "::set-output name=branch_name::$( echo $noFix | cut -c 1-20 )"
37+
echo "branch_name=$( echo $noFix | cut -c 1-20 )" >> $GITHUB_OUTPUT
3838
id: normalize
3939

4040
feature-branch:

.github/workflows/gitversion.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ jobs:
4747
# prerelease_version: {suffix from inputs}{commit count since last release tag}-{run-count, not raised by re-run}
4848
# Example: -alpha0008-42
4949
run: |
50-
echo "::set-output name=prerelease_suffix::-${{ inputs.suffix }}$(printf %4s ${{ steps.gitversion.outputs.increment }} | tr ' ' 0)-${{ github.run_number }}"
50+
echo "prerelease_suffix=-${{ inputs.suffix }}$(printf %4s ${{ steps.gitversion.outputs.increment }} | tr ' ' 0)-${{ github.run_number }}" >> $GITHUB_OUTPUT
5151
id: prerelease_version
5252

5353
- name: Output version
5454
# If input "prerelease" == false, then steps.prerelease_version.outputs.prerelease_suffix will be empty.
5555
run: |
56-
echo "::set-output name=final_version::${{ steps.gitversion.outputs.version }}${{ steps.prerelease_version.outputs.prerelease_suffix }}"
56+
echo "final_version=${{ steps.gitversion.outputs.version }}${{ steps.prerelease_version.outputs.prerelease_suffix }}" >> $GITHUB_OUTPUT
5757
id: nuget_version # Output name.

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ Two of the workflows require secrets to be passed on to work as intended:
55

66
* `publish.yml` pushes NuGet packages to nuget.org and needs a personal access token named `NUGET_FEED_PAT` with proper permissions
77
* `create-release.yml` creates commits, merges and creates branches and pushes to the target repository and need a GitHub personal access token name `PUSH_TO_GITHUB_REPO_PAT` with proper permissions
8+
- the only permission to be set is `public_repo`

0 commit comments

Comments
 (0)