diff --git a/.github/workflows/auto-start-ci.yml b/.github/workflows/auto-start-ci.yml index 98f562fd00b767..1fceea7272cbdd 100644 --- a/.github/workflows/auto-start-ci.yml +++ b/.github/workflows/auto-start-ci.yml @@ -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: diff --git a/.github/workflows/commit-lint.yml b/.github/workflows/commit-lint.yml index 738a034aecb017..617e434e40404d 100644 --- a/.github/workflows/commit-lint.yml +++ b/.github/workflows/commit-lint.yml @@ -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 }} diff --git a/.github/workflows/commit-queue.yml b/.github/workflows/commit-queue.yml index ac57fbb0e01f4f..18a26666dee871 100644 --- a/.github/workflows/commit-queue.yml +++ b/.github/workflows/commit-queue.yml @@ -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: diff --git a/.github/workflows/label-flaky-test-issue.yml b/.github/workflows/label-flaky-test-issue.yml index 490d0826fb53aa..0f49458fd10560 100644 --- a/.github/workflows/label-flaky-test-issue.yml +++ b/.github/workflows/label-flaky-test-issue.yml @@ -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: