Skip to content

Commit

Permalink
finalize changes
Browse files Browse the repository at this point in the history
  • Loading branch information
RomarQ committed Jan 21, 2025
1 parent ed48bcf commit 215eeb4
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 57 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/update-typescript-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: "runtime-${{ github.event.inputs.spec_version }}"
- name: Local build new Node
uses: ./.github/workflow-templates/cargo-build
- name: Upload Node
Expand All @@ -28,7 +26,8 @@ jobs:
needs: build
runs-on: moonbeam-release-medium
permissions:
contents: read
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -37,16 +36,28 @@ jobs:
with:
name: moonbeam
path: target/release
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version-file: "test/.nvmrc"
cache: pnpm
registry-url: https://registry.npmjs.org/
- name: Run Typegen
run: |
chmod uog+x target/release/moonbeam
pnpm i
cd test
pnpm typegen
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
base: master
branch: "typescript-api-${{ github.event.ref }}"
branch: "update-typescript-api-${{ github.run_id }}"
commit-message: "Update Rust/TS bindings"
draft: true
title: "Update Rust/TS bindings"
Expand Down
78 changes: 25 additions & 53 deletions .github/workflows/version-bump.yml
Original file line number Diff line number Diff line change
@@ -1,66 +1,38 @@
name: Update Rust/TS bindings

name: Create version bump ticket
on:
pull_request:
push:
branches:
- master
workflow_dispatch:
inputs:
from:
description: "Polkadot version to bump from (ex: v1.3.0)"
required: true
to:
description: "Polkadot version to bump to (ex: v1.7.2)"
required: true

jobs:
build:
runs-on:
labels: bare-metal
create_bump_ticket:
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Local build new Node
uses: ./.github/workflow-templates/cargo-build
- name: Upload Node
uses: actions/upload-artifact@v4
with:
name: moonbeam
path: build

update-typescript-api:
needs: build
runs-on: moonbeam-release-medium
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download Node
uses: actions/download-artifact@v4
with:
name: moonbeam
path: target/release
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: false
- name: Install Node.js
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: "test/.nvmrc"
cache: pnpm
registry-url: https://registry.npmjs.org/
- name: Run Typegen
- name: Generate version bump issue
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
chmod uog+x target/release/moonbeam
pnpm i
cd test
pnpm typegen
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
cd tools
yarn install
yarn --silent run print-version-bump-info -- --from ${{ github.event.inputs.from }} --to ${{ github.event.inputs.to }} | tee ../version-bump.md
- name: Create version bump issue
uses: peter-evans/create-issue-from-file@v5
with:
base: master
branch: "update-typescript-api-${{ github.run_id }}"
commit-message: "Update Rust/TS bindings"
draft: true
title: "Update Rust/TS bindings"
reviewers: "moonsong-coredev"
labels: "B0-silent,D2-notlive"
title: Update polkadot-sdk from ${{ github.event.inputs.from }} to ${{ github.event.inputs.to }}
content-filepath: ./version-bump.md
labels: |
automated issue

0 comments on commit 215eeb4

Please sign in to comment.