diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ab62f66..9a877a1 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -22,7 +22,7 @@ jobs: uses: ./ with: create-tag: "true" - use-local-container: "true" + image: "Dockerfile" - uses: actions/checkout@v2 - name: Build Containers diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index d3ebf29..d09ff35 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -20,7 +20,7 @@ jobs: uses: ./ with: create-tag: "false" - use-local-container: "true" + image: "Dockerfile" - name: Print the outputs run: | diff --git a/action.yaml b/action.yaml index bbfa464..68ad7a5 100644 --- a/action.yaml +++ b/action.yaml @@ -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" @@ -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 }}