Skip to content

Commit

Permalink
fixup! [nrf noup] ci: enable custom base for manifest-PR
Browse files Browse the repository at this point in the history
  • Loading branch information
thst-nordic committed Oct 27, 2024
1 parent 6475997 commit 235c0e5
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/manifest-PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,19 @@ jobs:
call-manifest-pr-action:
runs-on: ubuntu-latest
env:
TARGET_BASE_BRANCH: ${{ github.ref == 'refs/heads/v3.7.99-ncs1-branch' && 'v2.8-branch' || 'main' }}
TARGET_BASE_BRANCH: ${{ github.event.pull_request.base.ref == 'refs/heads/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
run:
echo "github.ref=${{ github.ref }}
echo "github.event.pull_request.base.ref=${{ github.event.pull_request.base.ref }}
# run: echo "TARGET_BASE_BRANCH=${{ TARGET_BASE_BRANCH }}
# - name: set 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}}'
# run: echo "TARGET_BASE_BRANCH=${{ fromJSON(env.myjson)[env.var_foo] }}" >> $GITHUB_ENV

# - name: handle manifest PR
# uses: thst-nordic/action-manifest-pr@add_release_branches
Expand Down

0 comments on commit 235c0e5

Please sign in to comment.