Skip to content

Commit

Permalink
Resolve issue with using two action/checkout's
Browse files Browse the repository at this point in the history
  • Loading branch information
ianayl committed Sep 18, 2024
1 parent 6ed0361 commit f54e1d2
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/sycl-benchmark-aggregate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
if [ -z '${{ inputs.cutoff_timestamp }}' ]; then
# No time given, use default time period
echo "CUTOFF_TIMESTAMP=$(date --date="$AVERAGE_CUTOFF_RANGE" "$TIMESTAMP_FORMAT")" >> $GITHUB_ENV
echo "CUTOFF_TIMESTAMP=$(date --date="$AVERAGE_CUTOFF_RANGE" +"$TIMESTAMP_FORMAT")" >> $GITHUB_ENV
else
# If the provided time is a unix `date` timestamp, convert the time to our format
_converted_timestamp="$(date --date '${{ inputs.cutoff_timestamp }}' +"$TIMESTAMP_FORMAT" 2> /dev/null)"
Expand All @@ -53,20 +53,19 @@ jobs:
echo 'CUTOFF_TIMESTAMP=${{ inputs.cutoff_timestamp }}' >> $GITHUB_ENV
fi
fi
- uses: actions/checkout@v4
with:
# TODO populate default values before loading configuration
path: ${{ env.PERF_RES_PATH }}
repository: ianayl/llvm-ci-perf-results #${{ env.PERF_RES_GIT_REPO }}
ref: ${{ env.PERF_RES_BRANCH }}
- name: Checkout performance results repository
run: |
git clone -b $PERF_RES_BRANCH $PERF_RES_GIT_REPO $PERF_RES_PATH
- name: Debug
run: |
find "$PERF_RES_PATH" -maxdepth 3 ! -name '.*'
echo "########"
find . -maxdepth 3 ! -name '.*'
- name: Run aggregator on cloned data
run: |
for dir in $(find "$PERF_RES_PATH" -mindepth 1 -maxdepth 1 -type d ! -name '.*'); do
python llvm/devops/benchmarking/aggregate.py "$(basename dir)" "$CUTOFF_TIMESTAMP"
done
- name: Debug
run: |
find "$PERF_RES_PATH" -maxdepth 3 ! -name '.*'
- name: Upload average to the repo
env:
SSH_KEY: ${{secrets.ACTIONS_DEPLOY_KEY}}
Expand Down

0 comments on commit f54e1d2

Please sign in to comment.