Browse Source

Merge pull request #2137 from nocodb/fix/github-action

fix: github action issues
pull/2165/head
աɨռɢӄաօռɢ 3 years ago committed by GitHub
parent
commit
e1cd32f1d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 24
      .github/workflows/ci-cd.yml
  2. 2
      .github/workflows/publish-api-docs.yml
  3. 2
      .github/workflows/publish-blog.yml
  4. 2
      .github/workflows/publish-dev-docs.yml
  5. 12
      .github/workflows/publish-docs.yml
  6. 2
      .github/workflows/publish-noco-i18n.yml
  7. 2
      .github/workflows/publish-prev-docs.yml
  8. 2
      .github/workflows/release-docker.yml
  9. 29
      .github/workflows/release-draft.yml
  10. 7
      .github/workflows/release-nocodb.yml
  11. 2
      .github/workflows/release-npm.yml
  12. 4
      .github/workflows/update-sdk-path.yml

24
.github/workflows/ci-cd.yml

@ -25,7 +25,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 14
node-version: 16
- name: Checkout
uses: actions/checkout@v2
with:
@ -70,7 +70,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 14
node-version: 16
- name: Checkout
uses: actions/checkout@v2
with:
@ -115,7 +115,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 14
node-version: 16
- name: Checkout
uses: actions/checkout@v2
with:
@ -160,7 +160,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 14
node-version: 16
- name: Checkout
uses: actions/checkout@v2
with:
@ -205,7 +205,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 14
node-version: 16
- name: Checkout
uses: actions/checkout@v2
with:
@ -250,7 +250,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 14
node-version: 16
- name: Checkout
uses: actions/checkout@v2
with:
@ -295,7 +295,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 14
node-version: 16
- name: Checkout
uses: actions/checkout@v2
with:
@ -340,7 +340,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 14
node-version: 16
- name: Checkout
uses: actions/checkout@v2
with:
@ -385,7 +385,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 14
node-version: 16
- name: Checkout
uses: actions/checkout@v2
with:
@ -430,7 +430,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 14
node-version: 16
- name: Checkout
uses: actions/checkout@v2
with:
@ -475,7 +475,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 14
node-version: 16
- name: Checkout
uses: actions/checkout@v2
with:
@ -520,7 +520,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 14
node-version: 16
- name: Checkout
uses: actions/checkout@v2
with:

2
.github/workflows/publish-api-docs.yml

@ -14,6 +14,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Pushes swagger file to src
uses: dmnemec/copy_file_to_another_repo_action@1b29cbd9a323185f20b175dc6d5f8f31be5c0658

2
.github/workflows/publish-blog.yml

@ -17,7 +17,7 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16
- name: Build blogs
run: |
cd packages/noco-blog

2
.github/workflows/publish-dev-docs.yml

@ -18,7 +18,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16
- name: Build docs
run: |
cd packages/noco-docs

12
.github/workflows/publish-docs.yml

@ -1,14 +1,10 @@
name: "Publish : Docs"
on:
push:
branches: [ master ]
paths:
- "packages/noco-docs/**"
release:
types: [ published ]
# Triggered manually
workflow_dispatch:
# Triggered by release-nocodb.yml
workflow_call:
jobs:
copy-file:
@ -20,14 +16,12 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16
- name: Build docs
run: |
cd packages/noco-docs
npm install
npm run generate
- name: Pushes generated output
uses: dmnemec/copy_file_to_another_repo_action@1b29cbd9a323185f20b175dc6d5f8f31be5c0658
env:

2
.github/workflows/publish-noco-i18n.yml

@ -19,7 +19,7 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16
- name: Build noco-i18n
run: |
cd packages/noco-i18n

2
.github/workflows/publish-prev-docs.yml

@ -19,7 +19,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16
- name: Build prev docs
run: |
cd packages/noco-docs-prev

2
.github/workflows/release-docker.yml

@ -46,7 +46,7 @@ jobs:
working-directory: ./packages/nocodb
strategy:
matrix:
node-version: [14]
node-version: [16]
steps:
- name: Get Docker Repository
id: get-docker-repository

29
.github/workflows/release-draft.yml

@ -26,23 +26,36 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.ref }}
- name: Get SHA
id: get-sha
# If it's triggered by release-nocodb.yml,
# the SHA from the third commit (i.e. Auto PR from master to develop) will be taken
# else HEAD will be taken
run: |
TARGET_SHA=$(git rev-parse HEAD~2)
if [[ ${{ github.event_name }} == 'workflow_dispatch' ]]; then
TARGET_SHA=$(git rev-parse HEAD)
fi
echo "::set-output name=TARGET_SHA::${TARGET_SHA}"
echo "Setting TARGET_SHA: ${{steps.get-sha.outputs.TARGET_SHA}}"
- name: Create tag
uses: actions/github-script@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
# need workflows permission but it's not in GITHUB_TOKEN scope
# need a custom PAT with workflows permission here
github-token: ${{ secrets.NC_GITHUB_TOKEN }}
script: |
github.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "refs/tags/${{ github.event.inputs.tag || inputs.tag }}",
sha: context.sha
sha: "${{steps.get-sha.outputs.TARGET_SHA}}"
})
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16
- run: "npx github-release-notes@0.17.2 release --token ${{ secrets.GITHUB_TOKEN }} --draft --tags ${{ github.event.inputs.tag || inputs.tag }}..${{ github.event.inputs.prev_tag || inputs.prev_tag }}"

7
.github/workflows/release-nocodb.yml

@ -105,9 +105,14 @@ jobs:
DOCKERHUB_USERNAME: "${{ secrets.DOCKERHUB_USERNAME }}"
DOCKERHUB_TOKEN: "${{ secrets.DOCKERHUB_TOKEN }}"
# Publish Docs
publish-docs:
needs: release-docker
uses: ./.github/workflows/publish-docs.yml
# Change nocodb-sdk back to local path
update-sdk-path:
needs: release-docker
needs: publish-docs
uses: ./.github/workflows/update-sdk-path.yml
# Sync changes to develop

2
.github/workflows/release-npm.yml

@ -37,7 +37,7 @@ jobs:
working-directory: ./packages/nocodb
strategy:
matrix:
node-version: [14]
node-version: [16]
steps:
- name: Checkout
uses: actions/checkout@v2

4
.github/workflows/update-sdk-path.yml

@ -10,10 +10,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14]
node-version: [16]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- run: |
cd packages/nocodb

Loading…
Cancel
Save