Skip to content

Commit

Permalink
Get param from inputs context.
Browse files Browse the repository at this point in the history
  • Loading branch information
ecPablo committed Jul 18, 2023
1 parent 5a2260c commit b522fed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@ 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
run: |
git config user.name github-actions
git config user.email [email protected]
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
Expand Down

0 comments on commit b522fed

Please sign in to comment.