mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-02 19:07:29 +00:00
36 lines
No EOL
1,015 B
YAML
36 lines
No EOL
1,015 B
YAML
name: Documentation version release
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
create-branch:
|
|
description: "Branch name"
|
|
version:
|
|
description: "RELEASE_VERSION"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup node 16.14
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 16.14
|
|
- run: cd docs && yarn install && npm run docusaurus docs:v2.6
|
|
|
|
- name: extract git commmit data
|
|
uses: rlespinasse/git-commit-data-action@v1
|
|
|
|
- name: Create Pull Request
|
|
uses: peter-evans/create-pull-request@v3.9.2
|
|
with:
|
|
title: "Creating a new version folder"
|
|
body: "Created a new version folder for version: ${{ github.event.inputs.RELEASE_VERSION }}"
|
|
branch: "${{ github.event.inputs.create-branch }}"
|
|
base: "develop"
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
delete-branch : true |