Skip to content

Commit

Permalink
ci: The set-output command is deprecated and will be disabled soon, f…
Browse files Browse the repository at this point in the history
…ix it
  • Loading branch information
liya2017 authored and liya2017 committed Nov 4, 2022
1 parent 5aa8b42 commit 4ab8ccb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
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

0 comments on commit 4ab8ccb

Please sign in to comment.