Skip to content

Commit

Permalink
chore: Use git sha as checkout ref (#14)
Browse files Browse the repository at this point in the history
## Which problem is this PR solving?

Updates checkout action for main and release workflows to use git sha as
ref.
  • Loading branch information
MikeGoldsmith committed Jul 11, 2023
1 parent 384a657 commit 988c957
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
packages: write
steps:
- uses: actions/checkout@v3.5.3
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Log in to the Container registry
uses: docker/login-action@v2.2.0
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout Repo
uses: actions/checkout@v1
uses: actions/checkout@v3.5.3
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: build
run: make docker-build
2 changes: 2 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
packages: write
steps:
- uses: actions/checkout@v3.5.3
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Log in to the Container registry
uses: docker/login-action@v2.2.0
Expand Down

0 comments on commit 988c957

Please sign in to comment.