Skip to content

Commit 9b76d59

Browse files
Fix checkout action commit ref (#3405)
* fix checkout * fix other actions --------- Co-authored-by: Narek Matevosyan <[email protected]>
1 parent ad5b0d4 commit 9b76d59

File tree

5 files changed

+9
-0
lines changed

5 files changed

+9
-0
lines changed

.github/workflows/branch-deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v3
13+
with:
14+
ref: ${{ github.event.pull_request.head.sha }}
1315
- name: get branch name
1416
id: extract_branch
1517
run: |

.github/workflows/build-public-image.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v3
12+
with:
13+
ref: ${{ github.event.pull_request.head.sha }}
1214
- name: get branch name
1315
id: extract_branch
1416
run: |

.github/workflows/master.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v3
12+
with:
13+
ref: ${{ github.event.pull_request.head.sha }}
1214

1315
- name: Set up JDK
1416
uses: actions/setup-java@v3

.github/workflows/release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
- uses: actions/checkout@v3
1313
with:
1414
fetch-depth: 0
15+
ref: ${{ github.event.pull_request.head.sha }}
1516

1617
- run: |
1718
git config user.name github-actions

.github/workflows/separate_env_public_create.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v3
15+
with:
16+
ref: ${{ github.event.pull_request.head.sha }}
1517
- name: get branch name
1618
id: extract_branch
1719
run: |

0 commit comments

Comments
 (0)