Skip to content

Commit 82a1440

Browse files
Checkout workflow triggering commit SHA instead of most recent commit from the branch
1 parent 330de85 commit 82a1440

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/os-compatibility.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,11 @@ jobs:
113113
- name: Install required libraries for MySQL on alpine
114114
run: apk add libaio libstdc++
115115

116-
- name: Checkout
117-
run: git clone https://github.com/${{ github.repository }} --branch ${{ github.head_ref || github.ref_name }} --single-branch --depth 1 mysqlmsn
116+
- name: Clone Repository
117+
run: git clone https://github.com/${{ github.repository }} --branch ${{ github.head_ref || github.ref_name }} --single-branch mysqlmsn
118+
119+
- name: Checkout code
120+
run: git reset --hard ${{ github.sha }}
118121

119122
- name: Install packages
120123
working-directory: mysqlmsn

0 commit comments

Comments
 (0)