-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use startsWith instead of contains in action condition
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,15 +106,15 @@ jobs: | |
- name: Build and load local docker image for PRs or Not Tags | ||
uses: docker/[email protected] | ||
if: github.event_name == 'pull_request' || !${{contains(github.ref, 'refs/tags/')}} | ||
if: github.event_name == 'pull_request' || !startsWith(github.ref, 'refs/tags/') | ||
with: | ||
context: . | ||
load: true | ||
tags: ${{ env.IMAGE_NAME}}:${{ env.TAG}} | ||
|
||
- name: Build and load local docker image for Not PRs and Tags | ||
uses: docker/[email protected] | ||
if: github.event_name != 'pull_request' && (contains(github.ref, 'refs/tags/')) | ||
if: github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/') | ||
with: | ||
context: . | ||
load: true | ||
|