Skip to content

Commit

Permalink
ci: Fix local action
Browse files Browse the repository at this point in the history
  • Loading branch information
bennetrr committed Apr 26, 2024
1 parent 58c4d77 commit 99f1e72
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: ./
with:
create-tag: "true"
use-local-container: "true"
image: "Dockerfile"

- uses: actions/checkout@v2
- name: Build Containers
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: ./
with:
create-tag: "false"
use-local-container: "true"
image: "Dockerfile"

- name: Print the outputs
run: |
Expand Down
6 changes: 3 additions & 3 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ inputs:
description: "The mode to use for determining the next version. Possible values: `semantic`, `hash-based`."
required: false
default: "semantic"
use-local-container:
image:
description: "Whether to use the container released to GHCR or build the container from the current sources (for testing)."
required: false
default: "false"
default: "docker://ghcr.io/wemogy/get-release-version-action:latest"
outputs:
version:
description: "The next version, without the prefix"
Expand All @@ -47,7 +47,7 @@ outputs:
description: "If any relevant changes got detected and a tag got created."
runs:
using: "docker"
image: ${{ inputs.use-local-container && 'Dockerfile' || 'docker://ghcr.io/wemogy/get-release-version-action:latest' }}
image: ${{ inputs.image }}
args:
- --prefix
- ${{ inputs.prefix }}
Expand Down

0 comments on commit 99f1e72

Please sign in to comment.