Skip to content

Commit

Permalink
Fix release draft process
Browse files Browse the repository at this point in the history
  • Loading branch information
Crystalin committed Dec 12, 2020
1 parent a68eb4f commit e79564a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ jobs:
- name: Get runtime version
id: get-runtime-ver
run: |
runtime_ver="$(ruby -e 'require "./scripts/github/lib.rb"; puts get_runtime("${{ matrix.runtime }}")')"
runtime_ver="$(ruby -e 'require "./scripts/github/lib.rb"; puts get_runtime("parachain.rs")')"
echo "::set-output name=runtime_ver::$runtime_ver"
- name: Upload ${{ matrix.runtime }} wasm
uses: actions/upload-release-asset@v1
Expand Down
2 changes: 1 addition & 1 deletion scripts/github/generate_release_text.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
rustc = ENV['RUSTC']
toolchain_nightly = ENV['WASM_BUILD_TOOLCHAIN']

moonbeam_runtime = get_runtime('moonbeam', moonbeam_path)
moonbeam_runtime = get_runtime('parachain.rs', moonbeam_path)

# These json files should have been downloaded as part of the build-runtimes
# github action
Expand Down
2 changes: 1 addition & 1 deletion scripts/github/lib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Optionally accepts a path that is the root of the project which defaults to
# the current working directory
def get_runtime(runtime, path = '.')
File.open(path + "/runtime/src/lib.rs") do |f|
File.open(path + "/runtime/src/" + runtime ) do |f|
f.find { |l| l =~ /spec_version/ }.match(/[0-9]+/)[0]
end
end

0 comments on commit e79564a

Please sign in to comment.