Skip to content

Commit

Permalink
Issue #15 - Echo into GITHUB_OUTPUT instead of using ::set-output.
Browse files Browse the repository at this point in the history
  • Loading branch information
denschub committed Dec 8, 2022
1 parent 841437d commit 72283da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
zip camo.zip camo
- name: Get the built version number
id: version_number
run: echo ::set-output name=version::$(out/bin/camo --version | awk -F ' ' '{print $2}')
run: echo "version=$(out/bin/camo --version | awk -F ' ' '{print $2}')" >> $GITHUB_OUTPUT
- name: Upload release artifacts
uses: actions/upload-artifact@v3
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
- name: Split tag name into semver-compatible subsections
id: version_numbers
run: |
echo ::set-output name=patch::$(echo $GITHUB_REF | sed 's=refs/tags/v==g')
echo ::set-output name=minor::$(echo $GITHUB_REF | sed 's=refs/tags/v==g' | cut -d "." -f 1,2)
echo ::set-output name=major::$(echo $GITHUB_REF | sed 's=refs/tags/v==g' | cut -d "." -f 1)
echo "patch=$(echo $GITHUB_REF | sed 's=refs/tags/v==g')" >> $GITHUB_OUTPUT
echo "minor=$(echo $GITHUB_REF | sed 's=refs/tags/v==g' | cut -d "." -f 1,2)" >> $GITHUB_OUTPUT
echo "major=$(echo $GITHUB_REF | sed 's=refs/tags/v==g' | cut -d "." -f 1)" >> $GITHUB_OUTPUT
- name: Login to DockerHub
uses: docker/login-action@v2
with:
Expand Down

0 comments on commit 72283da

Please sign in to comment.