Skip to content

Commit 6de68a5

Browse files
authored
Update pr-action.yml
1 parent cce51cd commit 6de68a5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/pr-action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
steps:
2222
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2323
- uses: actions/checkout@v2
24+
with:
25+
ref: ${{ github.event.pull_request.head.sha }}
2426

2527
# Runs a single command using the runners shell
2628
- name: Run a one-line script
@@ -47,7 +49,7 @@ jobs:
4749

4850
# Docker login
4951
- name: docker login
50-
run: docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }}
52+
run: echo "${{ secrets.DOCKERHUB_PASSWORD }}" | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
5153

5254

5355
# Get docker tag

0 commit comments

Comments
 (0)