Add message if user is using v1 version

Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
divyansh42 2021-03-23 00:20:02 +05:30
parent d2594b7a96
commit dc9713a0c9
4 changed files with 8 additions and 5 deletions

View file

@ -56,7 +56,7 @@ jobs:
- name: Maven - name: Maven
working-directory: ${{ env.TEST_REPO }} working-directory: ${{ env.TEST_REPO }}
run: | run: |
mvn package -ntp -B mvn package -ntp -B
# Build image using Buildah action # Build image using Buildah action
- name: Build Image - name: Build Image
@ -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

File diff suppressed because one or more lines are too long

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -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'];