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

tools: do not use the set-output command in workflows #45024

Merged
merged 1 commit into from Oct 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/auto-start-ci.yml
Expand Up @@ -28,12 +28,13 @@ jobs:
- name: Get Pull Requests
id: get_prs_for_ci
run: >
gh pr list \
numbers=$(gh pr list \
--repo ${{ github.repository }} \
--label 'request-ci' \
--json 'number' \
-t '::set-output name=numbers::{{ range . }}{{ .number }} {{ end }}' \
--limit 100
-t '{{ range . }}{{ .number }} {{ end }}' \
--limit 100)
echo "numbers=$numbers" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
start-ci:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/commit-lint.yml
Expand Up @@ -15,8 +15,8 @@ jobs:
- name: Compute number of commits in the PR
id: nb-of-commits
run: |
echo "::set-output name=plusOne::$((${{ github.event.pull_request.commits }} + 1))"
echo "::set-output name=minusOne::$((${{ github.event.pull_request.commits }} - 1))"
echo "plusOne=$((${{ github.event.pull_request.commits }} + 1))" >> $GITHUB_OUTPUT
echo "minusOne=$((${{ github.event.pull_request.commits }} - 1))" >> $GITHUB_OUTPUT
- uses: actions/checkout@v3
with:
fetch-depth: ${{ steps.nb-of-commits.outputs.plusOne }}
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/commit-queue.yml
Expand Up @@ -33,13 +33,14 @@ jobs:
- name: Get Pull Requests
id: get_mergeable_prs
run: >
gh pr list \
numbers=$(gh pr list \
--repo ${{ github.repository }} \
--base ${{ github.ref_name }} \
--label 'commit-queue' \
--json 'number' \
-t '::set-output name=numbers::{{ range . }}{{ .number }} {{ end }}' \
--limit 100
-t '{{ range . }}{{ .number }} {{ end }}' \
--limit 100)
echo "numbers=$numbers" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
commitQueue:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/label-flaky-test-issue.yml
Expand Up @@ -41,7 +41,7 @@ jobs:
labels="${labels}${platform2label[$platform]},"; \
done;

echo "::set-output name=LABELS::${labels::-1}"
echo "LABELS=${labels::-1}" >> $GITHUB_OUTPUT

- name: Add labels
env:
Expand Down