Correct console ref while building on branch release-2.2 (#3492)

#### What type of PR is this?

/kind cleanup
/area core

#### What this PR does / why we need it:

Correct console ref while building on branch release-2.2. After that, we can build Halo and console on same branch(release-2.2) instead of main branch of console.

#### Does this PR introduce a user-facing change?

```release-note
None
```
release-2.2
John Niang 2023-03-08 23:02:14 +08:00 committed by GitHub
parent 16326ead95
commit ae76b37753
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -61,4 +61,4 @@ jobs:
dockerhub-user: ${{ secrets.DOCKER_USERNAME }}
dockerhub-token: ${{ secrets.DOCKER_TOKEN }}
push: ${{ github.event_name == 'push' || github.event_name == 'release' }} # we only push to GHCR if the push is to the next branch
console-ref: ${{ github.event_name == 'release' && github.ref || 'main' }}
console-ref: ${{ github.event_name == 'release' && github.ref || 'release-2.2' }}