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: replace deprecated set-output commands with new syntaxes #215

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions .github/workflows/bench-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
bash scripts/checkout-pr.sh src benchmarks

if [ -z "$(git status --porcelain)" ]; then
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: Install pnpm
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/bundle-impact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
git checkout "pr/$PR_HEAD_REF" -- src

if [ -z "$(git status --porcelain)" ]; then
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: Install pnpm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

- name: Calculate version
id: get-version
run: echo "::set-output name=version::$(node -p "require('./package.json').version")-pr${{ github.event.issue.number }}.$(git rev-parse --short HEAD)"
run: echo "version=$(node -p \"require('./package.json').version\")-pr${{ github.event.issue.number }}.$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Update package version
run: npm version ${{ steps.get-version.outputs.version }} --no-git-tag-version
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/register-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
bash scripts/checkout-pr.sh src docs

if [ -n "$(git status --porcelain src | grep '^A')" ]; then
echo '::set-output name=has_new_func::true'
echo "has_new_func=true" >> $GITHUB_OUTPUT
else
echo '::set-output name=has_new_func::false'
echo "has_new_func=false" >> $GITHUB_OUTPUT
fi

- name: Wait for other checks to finish
Expand Down
Loading