Skip to content

Commit

Permalink
Fix run split lines
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjohnsonpint committed Jan 7, 2025
1 parent 68886cf commit 3c24e8c
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 24 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci-go-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@ jobs:
uses: actions/checkout@v4
- name: Search for go.mod files
id: get-dirs
run:
echo "dirs=$(find . -name 'go.mod' -exec dirname {} \; | sed 's|^\./||' | jq -Rsc
'split("\n")[:-1]')" >> ${GITHUB_OUTPUT}
run: >
echo "dirs=$(
find . -name 'go.mod' -exec dirname {} \; |
sed 's|^\./||' |
jq -Rsc 'split("\n")[:-1]'
)" >> ${GITHUB_OUTPUT}
go-lint:
needs: get-dirs
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/ci-go-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ jobs:
uses: actions/checkout@v4
- name: Search for go.mod files
id: get-dirs
run:
echo "dirs=$(find . -name 'go.mod' -exec dirname {} \; | sed 's|^\./||' | jq -Rsc
'split("\n")[:-1]')" >> ${GITHUB_OUTPUT}
run: >
echo "dirs=$(
find . -name 'go.mod' -exec dirname {} \; |
sed 's|^\./||' |
jq -Rsc 'split("\n")[:-1]'
)" >> ${GITHUB_OUTPUT}
go-test:
needs: get-dirs
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/ci-sdk-as-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ jobs:
uses: actions/checkout@v4
- name: Find Examples
id: get-dirs
run:
echo "dirs=$(ls -d sdk/assemblyscript/examples/* | jq -Rsc 'split("\n")[:-1]' )" >>
${GITHUB_OUTPUT}
run: >
echo "dirs=$(
ls -d sdk/assemblyscript/examples/* |
jq -Rsc 'split("\n")[:-1]'
)" >> ${GITHUB_OUTPUT}
sdk-as-build-examples:
needs: get-dirs
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/ci-sdk-as-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ jobs:
uses: actions/checkout@v4
- name: Find Examples
id: get-dirs
run:
echo "dirs=$(ls -d sdk/assemblyscript/examples/* | jq -Rsc 'split("\n")[:-1]' )" >>
${GITHUB_OUTPUT}
run: >
echo "dirs=$(
ls -d sdk/assemblyscript/examples/* |
jq -Rsc 'split("\n")[:-1]'
)" >> ${GITHUB_OUTPUT}
sdk-as-lint-src:
if: github.event_name == 'pull_request'
Expand Down
18 changes: 12 additions & 6 deletions .github/workflows/ci-sdk-go-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,20 @@ jobs:
uses: actions/checkout@v4
- name: Find tools
id: get-tools-dirs
run:
echo "dirs=$(find ./sdk/go/tools -mindepth 1 -maxdepth 1 -type d | sed 's|^\./||' | jq
-Rsc 'split("\n")[:-1]')" >> ${GITHUB_OUTPUT}
run: >
echo "dirs=$(
find ./sdk/go/tools -mindepth 1 -maxdepth 1 -type d |
sed 's|^\./||' |
jq -Rsc 'split("\n")[:-1]'
)" >> ${GITHUB_OUTPUT}
- name: Find examples
id: get-examples-dirs
run:
echo "dirs=$(find ./sdk/go/examples -mindepth 1 -maxdepth 1 -type d | sed 's|^\./||' | jq
-Rsc 'split("\n")[:-1]')" >> ${GITHUB_OUTPUT}
run: >
echo "dirs=$(
find ./sdk/go/examples -mindepth 1 -maxdepth 1 -type d |
sed 's|^\./||' |
jq -Rsc 'split("\n")[:-1]'
)" >> ${GITHUB_OUTPUT}
sdk-go-build-tools:
needs: get-dirs
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/release-cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ jobs:
run: npm run build
- name: Publish NPM Package
working-directory: cli
run:
npm publish --provenance --access public --tag ${{ steps.parse_cli_version.outputs.npm_tag
}}
run: >
npm publish
--provenance
--access public
--tag ${{ steps.parse_cli_version.outputs.npm_tag }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create Release
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/release-sdk-as.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ jobs:
run: npm ci
- name: Publish NPM Package
working-directory: sdk/assemblyscript/src
run:
npm publish --provenance --access public --tag ${{ steps.parse_sdk_version.outputs.npm_tag
}}
run: >
npm publish
--provenance
--access public
--tag ${{ steps.parse_sdk_version.outputs.npm_tag }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create Release
Expand Down

0 comments on commit 3c24e8c

Please sign in to comment.