Skip to content

Commit

Permalink
ci(perf): fix format error of GITHUB_OUTPUT
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxpicca-Li committed Oct 28, 2024
1 parent 3a0860d commit 119928a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,22 @@ jobs:
- name: Determine if this is the biweekly run
id: determine_run
run: |
[ $(( $(date +'%U') % 2 )) -eq 0 ] && echo "run_biweekly::true" >> $GITHUB_OUTPUT || echo "run_biweekly::false" >> $GITHUB_OUTPUT
if [ $(( $(date +'%V') % 2 )) -eq 1 ]; then
echo "run_biweekly=true" >> $GITHUB_OUTPUT
else
echo "run_biweekly=false" >> $GITHUB_OUTPUT
fi
- name: Set test commit
id: set_test_commit
if: steps.determine_run.outputs.run_biweekly == 'true'
run: |
if [ "${{ github.event.inputs.test_commit }}" = "" ]; then
echo "Using latest commit."
echo "commit_sha::${{ github.sha }}" >> $GITHUB_OUTPUT
echo "commit_sha=${{ github.sha }}" >> $GITHUB_OUTPUT
else
echo "Using specified commit: ${{ github.event.inputs.test_commit }}"
echo "commit_sha::${{ github.event.inputs.test_commit }}" >> $GITHUB_OUTPUT
echo "commit_sha=${{ github.event.inputs.test_commit }}" >> $GITHUB_OUTPUT
fi
- name: Checkout code at specific commit
Expand Down

0 comments on commit 119928a

Please sign in to comment.