mirror of
https://github.com/redhat-actions/buildah-build.git
synced 2025-04-20 17:11:23 +00:00
Add message if user is using v1 version
Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
parent
d2594b7a96
commit
dc9713a0c9
4 changed files with 8 additions and 5 deletions
2
.github/workflows/verify-build.yml
vendored
2
.github/workflows/verify-build.yml
vendored
|
@ -65,7 +65,7 @@ jobs:
|
||||||
image: ${{ env.IMAGE_NAME }}
|
image: ${{ env.IMAGE_NAME }}
|
||||||
# To avoid hardcoding a particular version of the binary.
|
# To avoid hardcoding a particular version of the binary.
|
||||||
content: |
|
content: |
|
||||||
./spring-petclinic/target/spring-petclinic-*.BUILD-SNAPSHOT.jar
|
./spring-petclinic/target/spring-petclinic-*.jar
|
||||||
entrypoint: |
|
entrypoint: |
|
||||||
java
|
java
|
||||||
-jar
|
-jar
|
||||||
|
|
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
@ -12,8 +12,11 @@ export async function run(): Promise<void> {
|
||||||
throw new Error('buildah, and therefore this action, only works on Linux. Please use a Linux runner.');
|
throw new Error('buildah, and therefore this action, only works on Linux. Please use a Linux runner.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// show message if user is using older version
|
||||||
|
core.info(`⚠️ redhat-actions/buildah-build@v2 is now available. https://github.com/redhat-actions/buildah-build/blob/main/CHANGELOG.md`);
|
||||||
|
|
||||||
// get buildah cli
|
// get buildah cli
|
||||||
const buildahPath = await io.which('buildah', true);
|
const buildahPath = await io.which("buildah", true);
|
||||||
const cli: BuildahCli = new BuildahCli(buildahPath);
|
const cli: BuildahCli = new BuildahCli(buildahPath);
|
||||||
|
|
||||||
const workspace = process.env['GITHUB_WORKSPACE'];
|
const workspace = process.env['GITHUB_WORKSPACE'];
|
||||||
|
|
Loading…
Reference in a new issue