Browse Source

refactor: simplify pr release

pull/1926/head
Wing-Kam Wong 2 years ago
parent
commit
c687a72df1
  1. 6
      .github/workflows/release-docker.yml
  2. 2
      .github/workflows/release-pr.yml

6
.github/workflows/release-docker.yml

@ -48,9 +48,7 @@ jobs:
id: get-docker-repository id: get-docker-repository
run: | run: |
DOCKER_REPOSITORY=nocodb DOCKER_REPOSITORY=nocodb
if [[ ${{ github.event.inputs.targetEnv || inputs.targetEnv }} == 'PR' ]]; then if [[ ${{ github.event.inputs.targetEnv || inputs.targetEnv }} == 'DEV' ]]; then
DOCKER_REPOSITORY=${DOCKER_REPOSITORY}-timely
elif [[ ${{ github.event.inputs.targetEnv || inputs.targetEnv }} == 'DEV' ]]; then
if [[ ${{ inputs.isDaily || 'N' }} == 'Y' ]]; then if [[ ${{ inputs.isDaily || 'N' }} == 'Y' ]]; then
DOCKER_REPOSITORY=${DOCKER_REPOSITORY}-daily DOCKER_REPOSITORY=${DOCKER_REPOSITORY}-daily
else else
@ -72,7 +70,7 @@ jobs:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
- name: upgrade packages for nightly build or pr build - name: upgrade packages for nightly build or pr build
if: ${{ github.event.inputs.targetEnv == 'DEV' || inputs.targetEnv == 'DEV' || github.event.inputs.targetEnv == 'PR' || inputs.targetEnv == 'PR' }} if: ${{ github.event.inputs.targetEnv == 'DEV' || inputs.targetEnv == 'DEV' }}
run: | run: |
targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} targetVersion=${{ github.event.inputs.tag || inputs.tag }} node scripts/bumpNocodbSdkVersion.js targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} targetVersion=${{ github.event.inputs.tag || inputs.tag }} node scripts/bumpNocodbSdkVersion.js
cd packages/nocodb-sdk cd packages/nocodb-sdk

2
.github/workflows/release-pr.yml

@ -65,7 +65,7 @@ jobs:
uses: ./.github/workflows/release-docker.yml uses: ./.github/workflows/release-docker.yml
with: with:
tag: ${{ needs.set-tag.outputs.target_tag }} tag: ${{ needs.set-tag.outputs.target_tag }}
targetEnv: 'PR' targetEnv: 'DEV'
isDaily: 'N' isDaily: 'N'
secrets: secrets:
DOCKERHUB_USERNAME: "${{ secrets.DOCKERHUB_USERNAME }}" DOCKERHUB_USERNAME: "${{ secrets.DOCKERHUB_USERNAME }}"

Loading…
Cancel
Save