Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelmayer-dev committed Oct 4, 2023
1 parent b0c644e commit 2931abf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/compile_extensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
GH_TOKEN: ${{ github.token }}
run: |
pr_paths=$(gh pr view ${{ github.event.pull_request.number }} --json files)
files_count=$(jq '.files | length' <<< "${pr_paths}")
files_count=$(jq '.files | length' <<< ${pr_paths})
if [[ $files_count -gt 1 ]]
then
echo "Only one extension per pull-request is allowed!"
Expand All @@ -32,7 +32,7 @@ jobs:
echo "No extension was found"
exit 1
fi
echo "path=$(jq '.files[0].path' <<< ${pr_paths})" >> $GITHUB_OUTPUT
echo "path=$(jq -r '.files[0].path' <<< ${pr_paths})" >> $GITHUB_OUTPUT
- name: Check extension path
run: echo "${{ steps.extract-extension-path.outputs.path }}"
Expand Down

0 comments on commit 2931abf

Please sign in to comment.