Skip to content

Commit 319e1f7

Browse files
committed
ISSUE-9: Instead of 'main', checkout the current branch in the pipeline
1 parent 2ff41b4 commit 319e1f7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
runs-on: ubuntu-latest
1212
name: Run tests on lowest supported Python version on Ubuntu as a sanity-check before doing anything else
1313
steps:
14-
- name: Checkout main branch
14+
- name: Checkout current branch
1515
uses: actions/checkout@v4
1616
with:
17-
ref: main
17+
ref: ${{ github.ref_name }}
1818
- uses: actions/setup-python@v5
1919
with:
2020
python-version: '3.9'
@@ -27,10 +27,10 @@ jobs:
2727
name: Run all tests, run static type analysis, coverage, and mutation tests
2828
needs: sanity-run
2929
steps:
30-
- name: Checkout main branch
30+
- name: Checkout current branch
3131
uses: actions/checkout@v4
3232
with:
33-
ref: main
33+
ref: ${{ github.ref_name }}
3434
- uses: actions/setup-python@v5
3535
with:
3636
python-version: '3.12'
@@ -56,10 +56,10 @@ jobs:
5656
- os: ubuntu-latest
5757
env: '3.12'
5858
steps:
59-
- name: Checkout main branch
59+
- name: Checkout current branch
6060
uses: actions/checkout@v4
6161
with:
62-
ref: main
62+
ref: ${{ github.ref_name }}
6363
- uses: actions/setup-python@v5
6464
with:
6565
python-version: ${{ matrix.env }}

0 commit comments

Comments
 (0)