From 146d86b5f6290d9c25752db05ce27715272d0ec4 Mon Sep 17 00:00:00 2001 From: Omar Date: Mon, 27 Nov 2023 15:57:33 +0300 Subject: [PATCH] Build CI: Specify branch --- .github/workflows/build.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ff8f6ef2..be452dd2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,15 +20,25 @@ on: type: string required: true description: The version to use for the C# package + ref: + type: string + default: "main" + description: The branch, tag, or sha to checkout - default to "main". push: + # TODO: Remove! # Temporary due to workflow dispatch restrictions env: CARGO_TERM_COLOR: always + # TODO: Remove! + # Temporary due to workflow dispatch restrictions + INPUT_REF: main jobs: build-schemas-and-test-kit: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + ref: ${{ env.INPUT_REF }} - name: Install Rust Toolchain uses: actions-rs/toolchain@v1 with: @@ -43,9 +53,9 @@ jobs: # Enable sccache SCCACHE_GHA_ENABLED: "true" RUSTC_WRAPPER: "sccache" - working-directory: crates/generator + working-directory: radix-engine-toolkit/crates/generator - name: Upload Generated Artifacts uses: actions/upload-artifact@v3 with: name: "schemas-and-test-kit" - path: "crates/generator/output" \ No newline at end of file + path: "radix-engine-toolkit/crates/generator/output" \ No newline at end of file