-
Notifications
You must be signed in to change notification settings - Fork 118
49 lines (42 loc) · 1.59 KB
/
release.yml
File metadata and controls
49 lines (42 loc) · 1.59 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
name: Update Elapsed Test Times
on:
release:
types: [published]
jobs:
update_elapsed_test_times:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
fail-fast: false
steps:
- name: Get Release SHA
run: |
echo $GITHUB_SHA
- name: Checkout SSC
uses: actions/checkout@v4
with:
path: ssc
- name: Create SSC branch
shell: bash
run: |
cd ${{ github.workspace }}/ssc
git checkout -b update_test_times
pip install pandas requests
- name: Download Release Test Times
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
shell: bash
run: |
python '${{ github.workspace }}/ssc/test/compare_elapsed_time.py' download_csv $GITHUB_SHA '${{ github.workspace }}/ssc/test/elapsed_time_release'
- name: create pull request
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
cd ${{ github.workspace }}/ssc
ls ${{ github.workspace }}/ssc/test/elapsed_time_release
git add '${{ github.workspace }}/ssc/test/elapsed_time_release'
git commit -m "Update Test Elapsed Time CSVs for new Release"
git push origin update_test_times
gh pr create -B develop -H update_test_times --title 'Merge update_test_times into develop' --body 'As part of automated release process, run the SSC tests and update the test times CSV. This allows tracking of the test times across releases, and for comparison of feature branchs' test times to that of the latest release.\n\nCreated via release.yml by Github action'