Skip to content

Commit

Permalink
workflow dispatch
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Gielniewski <[email protected]>
  • Loading branch information
adigie committed Feb 13, 2025
1 parent f415a66 commit 6d1e4c7
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/examples-nrfconnect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ on:
- 'v*-branch'
pull_request:
merge_group:
workflow_dispatch:
inputs:
ncs_commit:
description: "NCS commit SHA"
required: true

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}
Expand All @@ -42,7 +47,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Update NCS recommended version
- name: Update NCS recommended version (workflow_dispatch)
if: github.event_name == 'workflow_dispatch'
run: |
echo "Using NCS revision ${{ github.event.inputs.commit }}"
echo "${{ github.event.inputs.commit }}" > config/nrfconnect/.nrfconnect-recommended-revision
- name: Update NCS recommended version (pull_request)
if: github.event_name == 'pull_request'
run: |
PR_DESCRIPTION="${{ github.event.pull_request.body }}"
Expand Down

0 comments on commit 6d1e4c7

Please sign in to comment.