mirror of https://github.com/halo-dev/halo
Add checkout-from parameter for composite action (#2241)
#### What type of PR is this?
/kind bug
#### What this PR does / why we need it:
Add checkout-from parameter for composite action. Please see <a801af5be5/README.md
>.
If we don't set the parameter for the action, it will checkout from `default branch` to build docker image. You can see <https://github.com/halo-dev/halo/runs/7316162265?check_suite_focus=true#step:2:478>.
#### Which issue(s) this PR fixes:
<!--
PR 合并时自动关闭 issue。
Automatically closes linked issue when PR is merged.
用法:`Fixes #<issue 号>`,或者 `Fixes (粘贴 issue 完整链接)`
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
Fixes #
#### Special notes for your reviewer:
#### Does this PR introduce a user-facing change?
```release-note
None
```
pull/2243/head
parent
faae645e88
commit
fe816e6843
|
@ -2,12 +2,16 @@ name: Halo CI
|
|||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- next
|
||||
- main
|
||||
paths:
|
||||
- "**"
|
||||
- "!**.md"
|
||||
push:
|
||||
branches:
|
||||
- "**"
|
||||
- next
|
||||
- main
|
||||
paths:
|
||||
- "**"
|
||||
- "!**.md"
|
||||
|
@ -54,3 +58,4 @@ jobs:
|
|||
image-name: halodev
|
||||
ghcr-token: ${{ secrets.GHCR_TOKEN }}
|
||||
push: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/next' }} # we only push to GHCR if the push is to the next branch
|
||||
checkout-from: ${{ github.ref }}
|
||||
|
|
Loading…
Reference in New Issue