Skip to content

Commit

Permalink
Merge pull request #502 from mgeisler/gh-action-set-output
Browse files Browse the repository at this point in the history
Update GH Actions to use `$GITHUB_OUTPUT`
  • Loading branch information
mgeisler authored Feb 9, 2023
2 parents 92d2412 + 010d265 commit edc56bf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,9 @@ jobs:
git add --verbose --all
if git diff --staged --quiet --exit-code; then
echo "No changes found in textwrap-wasm-demo-app"
echo '::set-output name=has-changes::false'
echo 'has-changes=false' >> $GITHUB_OUTPUT
else
echo '::set-output name=has-changes::true'
echo 'has-changes=true' >> $GITHUB_OUTPUT
fi
- name: Record build info
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
echo "Version from Cargo: $OLD_VERSION"
echo "Version from branch: $NEW_VERSION"
echo "::set-output name=name::$NAME"
echo "::set-output name=old-version::$OLD_VERSION"
echo "::set-output name=new-version::$NEW_VERSION"
echo "name=$NAME" >> $GITHUB_OUTPUT
echo "old-version=$OLD_VERSION" >> $GITHUB_OUTPUT
echo "new-version=$NEW_VERSION" >> $GITHUB_OUTPUT
- name: Verify version format
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-crate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
VERSION=$(cargo metadata -q --no-deps | jq -r '.packages[0].version')
CHANGELOG=$(awk '/^## Version/ {i++}; i==1 {print}; i>1 {exit}' CHANGELOG.md \
| python3 -c 'import sys, json; print(json.dumps(sys.stdin.read()))')
echo "::set-output name=name::$NAME"
echo "::set-output name=version::$VERSION"
echo "::set-output name=changelog::$CHANGELOG"
echo "name=$NAME" >> $GITHUB_OUTPUT
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "changelog=$CHANGELOG" >> $GITHUB_OUTPUT
echo "Found $NAME-$VERSION"
- name: Lookup ${{ steps.vars.outputs.version }} tag
Expand Down

0 comments on commit edc56bf

Please sign in to comment.