Skip to content

Commit

Permalink
respect passed branch for build (#1215)
Browse files Browse the repository at this point in the history
  • Loading branch information
eike-hass authored Aug 7, 2023
1 parent 579fd34 commit 52a53d5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/shared-build-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
required: false
type: boolean
default: true
ref:
description: "ref to checkout"
required: false
type: string
output-artifact-name:
description: "Name used for the output build artifact"
required: true
Expand All @@ -35,7 +39,8 @@ jobs:

steps:
- uses: actions/checkout@v3

with:
ref: ${{ inputs.ref }}
- name: Setup Rust and cache
uses: './.github/actions/rust/rust-setup'
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/wasm-publish-to-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
# owner/repository of workflow has to be static, see https://github.community/t/env-variables-in-uses/17466
uses: iotaledger/identity.rs/.github/workflows/shared-build-wasm.yml@main
with:
ref: ${{ github.event.inputs.branch }}
output-artifact-name: identity-wasm-bindings-build

release-wasm:
Expand Down

0 comments on commit 52a53d5

Please sign in to comment.