File tree Expand file tree Collapse file tree 1 file changed +8
-15
lines changed
Expand file tree Collapse file tree 1 file changed +8
-15
lines changed Original file line number Diff line number Diff line change 1- name : Run Perf benchmarks
1+ name : Run Performance Benchmarks
22
33on :
44 push :
55 branches :
66 - winter*
77 - spring*
88 - summer*
9- - wjh/perf-ci # Just for testing
109
1110jobs :
1211 run-performance-tests :
@@ -29,24 +28,18 @@ jobs:
2928 id : previous_release
3029 run : |
3130 # Parse current season and year from branch name
32- if [[ "$GITHUB_REF_NAME" =~ ^(winter|spring|summer)([0-9]+)$ ]]; then
33- season="${BASH_REMATCH[1]}"
34- year="${BASH_REMATCH[2]}"
35- else
36- echo "JUST FOR TESTING"
37- echo "branch=master" >> "$GITHUB_OUTPUT"
38- exit 0
39- fi
40-
31+ [[ "$GITHUB_REF_NAME" =~ ^(winter|spring|summer)([0-9]+)$ ]]
32+ season="${BASH_REMATCH[1]}"
33+ year="${BASH_REMATCH[2]}"
4134
4235 # Get previous season and year
4336 case $season in
44- winter) PREVIOUS ="summer$((year - 1))";;
45- spring) PREVIOUS ="winter$year";;
46- summer) PREVIOUS ="spring$year";;
37+ winter) previous ="summer$((year - 1))";;
38+ spring) previous ="winter$year";;
39+ summer) previous ="spring$year";;
4740 esac
4841 # Expose to GitHub Actions
49- echo "branch=$PREVIOUS " >> "$GITHUB_OUTPUT"
42+ echo "branch=$previous " >> "$GITHUB_OUTPUT"
5043
5144 - name : Build benchmarks
5245 env :
You can’t perform that action at this time.
0 commit comments