Skip to content

Commit c9ef297

Browse files
bors[bot]liya2017
andauthored
Merge #3690
3690: ci: The set-output command is deprecated and will be disabled soon, f… r=zhangsoledad a=liya2017 <!-- Thank you for contributing to nervosnetwork/ckb! If you haven't already, please read [CONTRIBUTING](https://github.com/nervosnetwork/ckb/blob/develop/CONTRIBUTING.md) document. If you're unsure about anything, just ask; somebody should be along to answer within a day or two. ### What is changed and how it works? Proposal: [xxx](url) <!-- REMOVE this line if not applicable --> What's Changed: ### Related changes - Fixed the warning that the set-output command is deprecated. - Still have some warning about set-output command since the https://github.com/actions-rs [toolchain](https://github.com/actions-rs/toolchain) need to bump `@actions` deps. A PR actions-rs/toolchain#222 to filx it ,but not merge yet. ### Check List <!--REMOVE the items that are not applicable--> Tests <!-- At least one of them must be included. --> - No code ci-runs-only: [ quick_checks,linters ] ### Release note <!-- Choose from None, Title Only and Note. Bugfixes or new features need a release note. --> ```release-note None: Exclude this PR from the release note. ``` Co-authored-by: liya2017 <[email protected]>
2 parents 381932d + 4ab8ccb commit c9ef297

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.github/actions/ci_prologue/ci_prologue.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fun_run_os(){
1515
fi
1616
done < "runs_on.txt"
1717
echo "OS skip is "$os_skip
18-
echo "::set-output name=os_skip::$os_skip"
18+
echo "os_skip=$os_skip" >> $GITHUB_OUTPUT
1919
}
2020

2121
fun_jobs(){
@@ -32,7 +32,7 @@ fun_jobs(){
3232
fi
3333
done < "job_run.txt"
3434
echo "JOB skip is" $job_skip
35-
echo "::set-output name=job_skip::$job_skip"
35+
echo "job_skip=$job_skip" >> $GITHUB_OUTPUT
3636
}
3737

3838
fun_pasing_message(){
@@ -77,8 +77,8 @@ fun_pasing_message(){
7777
fi
7878
echo "linux_runner_label is "$linux_runner_label
7979
echo "windows_runner_label is "$windows_runner_label
80-
echo "::set-output name=linux_runner_label::$linux_runner_label"
81-
echo "::set-output name=windows_runner_label::$windows_runner_label"
80+
echo "linux_runner_label=$linux_runner_label" >> $GITHUB_OUTPUT
81+
echo "windows_runner_label=$windows_runner_label" >> $GITHUB_OUTPUT
8282
}
8383

8484
if [[ $GITHUB_EVENT_NAME == "push" ]];then
@@ -101,11 +101,11 @@ if [[ $GITHUB_EVENT_NAME == "pull_request" ]];then
101101
job_run_list=" [ quick_checks,unit_tests,integration_tests,benchmarks,linters,wasm_build,cargo_deny,aarch64_build ] "
102102
fun_jobs "$job_run_list"
103103
if [[ "$GITHUB_REPOSITORY" == "nervosnetwork/ckb" ]];then
104-
echo "::set-output name=linux_runner_label::self-hosted-ci-ubuntu-20.04"
105-
echo "::set-output name=windows_runner_label::self-hosted-ci-windows-2019"
104+
echo "linux_runner_label=self-hosted-ci-ubuntu-20.04" >> $GITHUB_OUTPUT
105+
echo "windows_runner_label=self-hosted-ci-windows-2019" >> $GITHUB_OUTPUT
106106
else
107-
echo "::set-output name=linux_runner_label::ubuntu-20.04"
108-
echo "::set-output name=windows_runner_label::windows-2019"
107+
echo "linux_runner_label=ubuntu-20.04" >> $GITHUB_OUTPUT
108+
echo "windows_runner_label=windows-2019" >> $GITHUB_OUTPUT
109109
fi
110110
fi
111111
fi

.github/workflows/benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- name: Get Current Date & Set ENV
4747
id: date
4848
run: |
49-
echo "::set-output name=date::$(date +'%Y-%m-%d')"
49+
echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
5050
echo "START_TIME=$(date +%Y-%m-%d' '%H:%M:%S.%6N)" >> $GITHUB_ENV
5151
echo "CKB_COMMIT_ID=$(git describe --dirty --always --match _EXCLUDE__ --abbrev=7)" >> $GITHUB_ENV
5252
echo "CKB_COMMIT_TIME=$(git log -1 --date=iso "--pretty=format:%cd" | cut -d ' ' -f 1,2)" >> $GITHUB_ENV

.github/workflows/sync-mainnet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Get Current Date
3636
id: date
3737
run: |
38-
echo "::set-output name=date::$(date +'%Y-%m-%d')"
38+
echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
3939
echo "START_TIME=$(date +%Y-%m-%d' '%H:%M:%S.%6N)" >> $GITHUB_ENV
4040
echo "CKB_COMMIT_ID=$(git describe --dirty --always --match _EXCLUDE__ --abbrev=7)" >> $GITHUB_ENV
4141
echo "CKB_COMMIT_TIME=$(git log -1 --date=iso "--pretty=format:%cd" | cut -d ' ' -f 1,2)" >> $GITHUB_ENV

0 commit comments

Comments
 (0)