From fc1dc0ef94be65c7f9747cb948470c32c3a37b3c Mon Sep 17 00:00:00 2001 From: jandroav Date: Mon, 4 Mar 2024 09:03:05 +0100 Subject: [PATCH] fix(generate.yml): replace double curly braces with single curly braces in docker build and run commands to properly interpolate inputs.liquibase-version variable chore(gitignore): add commands.json to .gitignore to exclude generated file from version control --- .github/workflows/generate.yml | 4 ++-- .gitignore | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index 909c5e2..198b09c 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -16,10 +16,10 @@ jobs: - uses: actions/checkout@v3 - name: Build liquibase-protobuf-generator - run: docker build -t liquibase-protobuf-generator:{{ inputs.liquibase-version }} . --build-arg VERSION={{ inputs.liquibase-version }} + run: docker build -t liquibase-protobuf-generator:${{ inputs.liquibase-version }} . --build-arg VERSION=${{ inputs.liquibase-version }} - name: Generate liquibase commands - run: docker run --rm -v $(PWD):/proto liquibase-protobuf-generator:$(VERSION) --output-file=commands.json list-commands + run: docker run --rm -v $(PWD):/proto liquibase-protobuf-generator:${{ inputs.liquibase-version }} --output-file=commands.json list-commands - uses: actions/upload-artifact@v3 with: diff --git a/.gitignore b/.gitignore index bc59baf..f581720 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ node_modules .nyc_output coverage .npmrc +commands.json # Mac OS .DS_Store