mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-11 01:54:34 +08:00
28 lines
705 B
YAML
28 lines
705 B
YAML
|
# creates a PR from release branch to master
|
||
|
on:
|
||
|
workflow_call:
|
||
|
inputs:
|
||
|
version:
|
||
|
required: true
|
||
|
type: string
|
||
|
workflow_dispatch:
|
||
|
inputs:
|
||
|
version:
|
||
|
descripton: "netmaker version"
|
||
|
required: true
|
||
|
jobs:
|
||
|
pr-to-main:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: create pr
|
||
|
run: |
|
||
|
curl \
|
||
|
-X POST \
|
||
|
-H 'Accept: application/vnd.github+json' \
|
||
|
-H 'Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}'\
|
||
|
-H 'X-GitHub-Api-Version: 2022-11-28' \
|
||
|
https://api.github.com/repos/${{ github.repository }}/pulls \
|
||
|
-d '{"title":"{{ github.event.inputs.version }}","head":"release_${{ github.event.inputs.version }}","base":"master"}'
|
||
|
|
||
|
|