Skip to content

Commit

Permalink
checkout outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Sep 5, 2024
1 parent ffdbf70 commit 660984d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/scripts/get_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ generate_json() {
all_directories=""
for dir in "${DIRECTORIES[@]}"; do
all_directories+=$(discover_directories "$dir")
all_directories+=$'\n'
done

# Initialize an empty variable to store the JSON result
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/publish_github_action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ VERSION=$1

directories_json_string_with_linebreaks=$2
directories_json_string="${directories_json_string_with_linebreaks//$'\\n'/''}"
directories=$(echo "$directories_json_string" | jq -c -r '.[]')
directories=$(echo "$directories_json_string" | jq -c -r '.[] | .path')

sed -E -i "s/(\"version\": \")(.*)(\")/\1$VERSION\3/" package.json
sed -E -i "s/(\"version\": \")(.*)(\")/\1$VERSION\3/" dfx_extension/extension.json
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ jobs:
run: |
BRANCH_NAME="${{ github.head_ref }}"
RELEASE_VERSION="${BRANCH_NAME:9}"
./.github/scripts/publish_github_action.sh $RELEASE_VERSION ${{ toJSON(needs.get-tests.outputs.tests.*.path) }}
./.github/scripts/publish_github_action.sh $RELEASE_VERSION ${{ toJSON(needs.get-tests.outputs.tests) }}

0 comments on commit 660984d

Please sign in to comment.