Skip to content

[nrf noup] dnm: testing manifest-PR.yml #29

[nrf noup] dnm: testing manifest-PR.yml

[nrf noup] dnm: testing manifest-PR.yml #29

Workflow file for this run

name: handle manifest PR
on:
# pull_request_target:
pull_request:
types: [opened, synchronize, closed]
branches:
- main
- v3.7.99-ncs1-branch
jobs:
call-manifest-pr-action:
runs-on: ubuntu-latest
env:
TARGET_BASE_BRANCH: ${{ github.event.pull_request.base.ref == 'v3.7.99-ncs1-branch' && 'v2.8-branch' || 'main' }}
# myjson: '{"v3.7.99-ncs1-branch" : "v2.8-branch", "v3.7.99-ncs1-branch": "v2.7-branch"}'
steps:
# - name: set TARGET_BASE_BRANCH

Check failure on line 18 in .github/workflows/manifest-PR.yml

View workflow run for this annotation

GitHub Actions / handle manifest PR

Invalid workflow file

The workflow is not valid. .github/workflows/manifest-PR.yml (Line: 18, Col: 14): Unrecognized named-value: 'TARGET_BASE_BRANCH'. Located at position 1 within expression: TARGET_BASE_BRANCH .github/workflows/manifest-PR.yml (Line: 30, Col: 24): Unrecognized named-value: 'TARGET_BASE_BRANCH'. Located at position 1 within expression: TARGET_BASE_BRANCH
# # run: echo "github.event.pull_request.base.ref=${{ github.event.pull_request.base.ref }}
# run: echo "TARGET_BASE_BRANCH=${{ fromJSON(env.myjson)[env.var_foo] }}" >> $GITHUB_ENV
- name: read TARGET_BASE_BRANCH
run: echo "TARGET_BASE_BRANCH=$TARGET_BASE_BRANCH"
# if: contains(['SNAPSHOT'],env.BUILD_VERSION)
# run: echo '{{ github.event.pull_request.base.ref}}'
# - name: handle manifest PR
# uses: thst-nordic/action-manifest-pr@add_release_branches
# with:
# token: ${{ secrets.NCS_GITHUB_TOKEN }}
# manifest-pr-title-details: ${{ github.event.pull_request.title }}
# target-repo: nrfconnect/sdk-nrf-testing
# forked-repo: nordicbuilder/sdk-nrf-testing
# base-branch: ${{ TARGET_BASE_BRANCH }}