From e36b46f0c970dc3f1f5b5058a8d10834acdb2667 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Tue, 18 Jun 2024 16:46:49 +0100 Subject: [PATCH] [LOCAL][CI][Release] Forward inputs to Create Release composite action (#45038) --- .github/actions/create-release/action.yml | 14 ++++++++++++++ .github/workflows/create-release.yml | 4 ++++ 2 files changed, 18 insertions(+) diff --git a/.github/actions/create-release/action.yml b/.github/actions/create-release/action.yml index cce43d9348b..34480c73841 100644 --- a/.github/actions/create-release/action.yml +++ b/.github/actions/create-release/action.yml @@ -1,5 +1,19 @@ name: create_release description: Creates a new React Native release +inputs: + version: + description: 'The version of React Native we want to release. For example 0.75.0-rc.0' + required: true + type: string + is_latest_on_npm: + description: 'Whether we want to tag this release as latest on NPM' + required: true + type: boolean + default: false + dry_run: + description: 'Whether the job should be executed in dry-run mode or not' + type: boolean + default: false runs: using: composite steps: diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 85e14987843..7b58ae21e39 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -46,3 +46,7 @@ jobs: - name: Execute Prepare Release if: ${{ steps.check_stable_branch.outputs.ON_STABLE_BRANCH && !steps.check_if_tag_exists.outputs.TAG_EXISTS }} uses: ./.github/actions/create-release + with: + version: ${{ inputs.version }} + is_latest_on_npm: ${{ inputs.is_latest_on_npm }} + dry_run: ${{ inputs.dry_run }}