diff --git a/.github/workflows/NativePipeline.yml b/.github/workflows/NativePipeline.yml index 426a0a83a..b2adc1bc4 100644 --- a/.github/workflows/NativePipeline.yml +++ b/.github/workflows/NativePipeline.yml @@ -1,6 +1,13 @@ name: Run Native Pipeline on: workflow_dispatch: + inputs: + target-branch: + description: "Target Branch to Run the Job (leave empty for scheduled run)" + required: false + + # schedule: + # - cron: "0 6 * * *" # push: # branches: [master] @@ -457,3 +464,16 @@ jobs: name: ios-artifacts path: packages/pluggableWidgets/**/artifacts/ if-no-files-found: ignore + +trigger-on-branch: + if: github.event.inputs.target-branch == github.ref + needs: get-results + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/ccheckout@v3.4.0 + with: + ref: ${{ github.event.inputs.target-branch }} + + - name: Rerun the job on the specified branch + run: echo "Rerun the job on the specified branch"