mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-24 14:47:31 +00:00
50 lines
1.4 KiB
YAML
50 lines
1.4 KiB
YAML
name: "Update SDK Path"
|
|
|
|
on:
|
|
# Triggered manually
|
|
workflow_dispatch:
|
|
# Triggered by release-nocodb.yml
|
|
workflow_call:
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [16]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- run: |
|
|
cd packages/nocodb
|
|
npm install --save --save-exact nocodb-sdk@file:../nocodb-sdk
|
|
cd ../..
|
|
cd packages/nc-gui
|
|
npm install --save --save-exact nocodb-sdk@file:../nocodb-sdk
|
|
|
|
- name: Create Pull Request
|
|
id: cpr
|
|
uses: peter-evans/create-pull-request@v3
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
signoff: true
|
|
branch: 'bot/update-nocodb-sdk-path'
|
|
delete-branch: true
|
|
title: 'Update nocodb-sdk to local path'
|
|
labels: |
|
|
Bot: Automated PR
|
|
Bot: Automerge
|
|
- name: Check outputs
|
|
run: |
|
|
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
|
|
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
|
|
- name: automerge
|
|
uses: "pascalgn/automerge-action@v0.14.3"
|
|
env:
|
|
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
|
PULL_REQUEST: "${{ steps.cpr.outputs.pull-request-number }}"
|
|
MERGE_LABELS: "Bot: Automerge"
|