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: The set-output command is deprecated and will be disabled soon, f… #3690

Merged
merged 1 commit into from
Nov 11, 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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/actions/ci_prologue/ci_prologue.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fun_run_os(){
fi
done < "runs_on.txt"
echo "OS skip is "$os_skip
echo "::set-output name=os_skip::$os_skip"
echo "os_skip=$os_skip" >> $GITHUB_OUTPUT
}

fun_jobs(){
Expand All @@ -32,7 +32,7 @@ fun_jobs(){
fi
done < "job_run.txt"
echo "JOB skip is" $job_skip
echo "::set-output name=job_skip::$job_skip"
echo "job_skip=$job_skip" >> $GITHUB_OUTPUT
}

fun_pasing_message(){
Expand Down Expand Up @@ -77,8 +77,8 @@ fun_pasing_message(){
fi
echo "linux_runner_label is "$linux_runner_label
echo "windows_runner_label is "$windows_runner_label
echo "::set-output name=linux_runner_label::$linux_runner_label"
echo "::set-output name=windows_runner_label::$windows_runner_label"
echo "linux_runner_label=$linux_runner_label" >> $GITHUB_OUTPUT
echo "windows_runner_label=$windows_runner_label" >> $GITHUB_OUTPUT
}

if [[ $GITHUB_EVENT_NAME == "push" ]];then
Expand All @@ -101,11 +101,11 @@ if [[ $GITHUB_EVENT_NAME == "pull_request" ]];then
job_run_list=" [ quick_checks,unit_tests,integration_tests,benchmarks,linters,wasm_build,cargo_deny,aarch64_build ] "
fun_jobs "$job_run_list"
if [[ "$GITHUB_REPOSITORY" == "nervosnetwork/ckb" ]];then
echo "::set-output name=linux_runner_label::self-hosted-ci-ubuntu-20.04"
echo "::set-output name=windows_runner_label::self-hosted-ci-windows-2019"
echo "linux_runner_label=self-hosted-ci-ubuntu-20.04" >> $GITHUB_OUTPUT
echo "windows_runner_label=self-hosted-ci-windows-2019" >> $GITHUB_OUTPUT
else
echo "::set-output name=linux_runner_label::ubuntu-20.04"
echo "::set-output name=windows_runner_label::windows-2019"
echo "linux_runner_label=ubuntu-20.04" >> $GITHUB_OUTPUT
echo "windows_runner_label=windows-2019" >> $GITHUB_OUTPUT
fi
fi
fi
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Get Current Date & Set ENV
id: date
run: |
echo "::set-output name=date::$(date +'%Y-%m-%d')"
echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
echo "START_TIME=$(date +%Y-%m-%d' '%H:%M:%S.%6N)" >> $GITHUB_ENV
echo "CKB_COMMIT_ID=$(git describe --dirty --always --match _EXCLUDE__ --abbrev=7)" >> $GITHUB_ENV
echo "CKB_COMMIT_TIME=$(git log -1 --date=iso "--pretty=format:%cd" | cut -d ' ' -f 1,2)" >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sync-mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Get Current Date
id: date
run: |
echo "::set-output name=date::$(date +'%Y-%m-%d')"
echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
echo "START_TIME=$(date +%Y-%m-%d' '%H:%M:%S.%6N)" >> $GITHUB_ENV
echo "CKB_COMMIT_ID=$(git describe --dirty --always --match _EXCLUDE__ --abbrev=7)" >> $GITHUB_ENV
echo "CKB_COMMIT_TIME=$(git log -1 --date=iso "--pretty=format:%cd" | cut -d ' ' -f 1,2)" >> $GITHUB_ENV
Expand Down