Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Use GITHUB_OUTPUT envvar instead of set-output command #136

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
run: |
JSON_FILES=$(find . -type f -wholename '*/examples/*.json' \
| jq -Rsc 'split("\n")[:-1]') # format output of `find` to an JSON array
echo "::set-output name=files::$(echo $JSON_FILES)"
echo "files=$(echo $JSON_FILES)" >> $GITHUB_OUTPUT

test_example_json:
name: Test ${{ matrix.test-file }} (Python ${{ matrix.python-version }})
Expand Down Expand Up @@ -118,11 +118,11 @@ jobs:
VERSION_TAG="v$(python setup.py --version)"
if [[ $(git ls-remote --tags origin refs/tags/$VERSION_TAG) ]]; then
# there exists a tag with same name as current version
echo "::set-output name=has_updated::false"
echo "has_updated=false" >> $GITHUB_OUTPUT
else
echo "::set-output name=has_updated::true"
echo "has_updated=true" >> $GITHUB_OUTPUT
fi
echo "::set-output name=version_tag::$(echo $VERSION_TAG)"
echo "version_tag=$(echo $VERSION_TAG)" >> $GITHUB_OUTPUT
echo "The current version of PPL Bench is $VERSION_TAG"

release_and_upload_pplbench:
Expand Down