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