-
Notifications
You must be signed in to change notification settings - Fork 37
37 lines (29 loc) · 1.03 KB
/
benchmark.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# This workflow runs benchmark
# Separation of jobs helps to cache data even benchmark is fail
name: Benchmark
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
run_doc_benchmark:
runs-on: ubuntu-latest
steps:
- name: Checkout CredSweeper
if: ${{ 'pull_request' == github.event_name }}
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Send cURL request with the commit SHA
if: ${{ 'pull_request' == github.event_name }}
env:
SLACK_URL: ${{ secrets.SLACK_URL }}
run: |
echo "${SLACK_URL}" | cut -c-80
COMMIT_SHA=$(git rev-parse HEAD)
curl -X POST ${SLACK_URL} \
--data-urlencode \
"payload={'text':'[BMT Request] ${{ github.event.repository.html_url }}/commit/${COMMIT_SHA}'}"
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #