From b522fed7dac215b3684c8b7d983db6903b1ed13f Mon Sep 17 00:00:00 2001 From: Pablo Estrada Date: Tue, 18 Jul 2023 07:28:43 -0600 Subject: [PATCH] Get param from inputs context. --- action.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/action.yaml b/action.yaml index 044c307..c771ba9 100644 --- a/action.yaml +++ b/action.yaml @@ -23,11 +23,11 @@ runs: - name: Check TARGET_DIRECTORY shell: bash run: | - if [ -z "${{ vars.TARGET_DIRECTORY }}" ] + if [ -z "${{ inputs.target-path }}" ] then echo "TARGET_DIRECTORY=contracts/target/release" >> $GITHUB_ENV else - echo "TARGET_DIRECTORY=${{ vars.TARGET_DIRECTORY }}" >> $GITHUB_ENV + echo "TARGET_DIRECTORY=${{ inputs.target-path }}" >> $GITHUB_ENV fi - name: Generate and push release artifacts shell: bash @@ -35,7 +35,7 @@ runs: git config user.name github-actions git config user.email github-actions@github.com date > release.txt - find ${{ vars.TARGET_DIRECTORY }} -print >> sclib-release.txt + find ${{ inputs.target-path }} -print >> sclib-release.txt git add sclib-release.txt git commit -m "Generate SC lib release file" git tag ${{ env.RELEASE_VERSION }}+scdist