File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 1
1
name : handle manifest PR
2
2
on :
3
+ # pull_request:
3
4
pull_request_target :
4
5
types : [opened, synchronize, closed]
5
6
branches :
10
11
jobs :
11
12
call-manifest-pr-action :
12
13
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"}'
13
17
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
+
14
29
- name : handle manifest PR
15
- uses : nrfconnect /action-manifest-pr@main
30
+ uses : thst-nordic /action-manifest-pr@add_release_branches
16
31
with :
17
32
token : ${{ secrets.NCS_GITHUB_TOKEN }}
18
33
manifest-pr-title-details : ${{ github.event.pull_request.title }}
19
34
target-repo : nrfconnect/sdk-nrf-testing
20
35
forked-repo : nordicbuilder/sdk-nrf-testing
36
+ base-branch : ${{ github.event.pull_request.base.ref == 'v3.7.99-ncs1-branch' && 'v2.8-branch' || 'main' }}
You can’t perform that action at this time.
0 commit comments