Skip to content

Commit 377c868

Browse files
committed
fix action
1 parent 85384f7 commit 377c868

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/collect-statistics.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
id: set-matrix
7474
run: |
7575
arr=$(echo [$(seq -s , ${{ inputs.runners }})])
76-
echo "::set-output name=matrix::$arr"
76+
echo "matrix=$arr" >> $GITHUB_OUTPUT
7777
echo $arr
7878
7979
build_and_collect_statistics:
@@ -120,24 +120,24 @@ jobs:
120120
- name: Get current date
121121
id: date
122122
run: |
123-
echo "::set-output name=date::$(date +'%Y-%m-%d-%H-%M-%S')"
124-
echo "::set-output name=timestamp::$(date +%s)"
125-
echo "::set-output name=last_month::$(date --date='last month' +%s)"
123+
echo "date=$(date +'%Y-%m-%d-%H-%M-%S')" >> $GITHUB_OUTPUT
124+
echo "timestamp=$(date +%s)" >> $GITHUB_OUTPUT
125+
echo "last_month=$(date --date='last month' +%s)" >> $GITHUB_OUTPUT
126126
127127
- name: Get metadata
128128
id: metadata
129129
run: |
130-
echo "::set-output name=commit::$(git rev-parse HEAD)"
131-
echo "::set-output name=short_commit::$(git rev-parse --short HEAD)"
132-
echo "::set-output name=branch::$(git name-rev --name-only HEAD)"
133-
echo "::set-output name=build::$(date +'%Y.%-m')"
130+
echo "commit=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
131+
echo "short_commit=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
132+
echo "branch=$(git name-rev --name-only HEAD)" >> $GITHUB_OUTPUT
133+
echo "build=$(date +'%Y.%-m')" >> $GITHUB_OUTPUT
134134
135135
- name: Insert metadata
136136
id: insert
137137
shell: bash
138138
run: |
139139
OUT_FILE="$data_path/$date-$branch-$short_commit-${{ matrix.value }}.json"
140-
echo "::set-output name=output::$OUT_FILE"
140+
echo "output=$OUT_FILE" >> $GITHUB_OUTPUT
141141
142142
INPUTS=($(seq ${{ inputs.run_number }}))
143143
INPUTS=(${INPUTS[@]/#/stats-})

0 commit comments

Comments
 (0)