Skip to content

Commit 1231649

Browse files
committed
[nrf noup] ci: enable custom base for manifest-PR
new arg base-branch Signed-off-by: Thomas Stilwell <thomas.stilwell@nordicsemi.no>
1 parent b992c8d commit 1231649

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/manifest-PR.yml

+17-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: handle manifest PR
22
on:
3+
# pull_request:
34
pull_request_target:
45
types: [opened, synchronize, closed]
56
branches:
@@ -10,11 +11,26 @@ on:
1011
jobs:
1112
call-manifest-pr-action:
1213
runs-on: ubuntu-latest
14+
# env:
15+
# TARGET_BASE_BRANCH: ${{ github.event.pull_request.base.ref == 'v3.7.99-ncs1-branch' && 'v2.8-branch' || 'main' }}
16+
# myjson: '{"v3.7.99-ncs1-branch" : "v2.8-branch", "v3.7.99-ncs1-branch": "v2.7-branch"}'
1317
steps:
18+
# - name: set TARGET_BASE_BRANCH
19+
# # run: echo "github.event.pull_request.base.ref=${{ github.event.pull_request.base.ref }}
20+
# run: echo "TARGET_BASE_BRANCH=${{ fromJSON(env.myjson)[env.var_foo] }}" >> $GITHUB_ENV
21+
22+
# - name: read TARGET_BASE_BRANCH
23+
# run: echo "TARGET_BASE_BRANCH=$TARGET_BASE_BRANCH"
24+
25+
26+
# if: contains(['SNAPSHOT'],env.BUILD_VERSION)
27+
# run: echo '{{ github.event.pull_request.base.ref}}'
28+
1429
- name: handle manifest PR
15-
uses: nrfconnect/action-manifest-pr@main
30+
uses: thst-nordic/action-manifest-pr@add_release_branches
1631
with:
1732
token: ${{ secrets.NCS_GITHUB_TOKEN }}
1833
manifest-pr-title-details: ${{ github.event.pull_request.title }}
1934
target-repo: nrfconnect/sdk-nrf-testing
2035
forked-repo: nordicbuilder/sdk-nrf-testing
36+
base-branch: ${{ github.event.pull_request.base.ref == 'v3.7.99-ncs1-branch' && 'v2.8-branch' || 'main' }}

0 commit comments

Comments
 (0)