Browse Source

fix: exclude pr-release for dependabot[bot]

pull/1936/head
Wing-Kam Wong 3 years ago
parent
commit
6883243165
  1. 5
      .github/workflows/release-pr.yml

5
.github/workflows/release-pr.yml

@ -14,6 +14,7 @@ on:
jobs: jobs:
# Validate Branch # Validate Branch
validate-branch: validate-branch:
if: ${{ github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- run: | - run: |
@ -24,6 +25,7 @@ jobs:
# enrich tag for pr release # enrich tag for pr release
set-tag: set-tag:
if: ${{ github.actor != 'dependabot[bot]' }}
runs-on: 'ubuntu-latest' runs-on: 'ubuntu-latest'
needs: [validate-branch] needs: [validate-branch]
steps: steps:
@ -51,6 +53,7 @@ jobs:
# Build, install, publish frontend and backend to npm # Build, install, publish frontend and backend to npm
release-npm: release-npm:
if: ${{ github.actor != 'dependabot[bot]' }}
needs: [set-tag] needs: [set-tag]
uses: ./.github/workflows/release-npm.yml uses: ./.github/workflows/release-npm.yml
with: with:
@ -61,6 +64,7 @@ jobs:
# Build docker image and push to docker hub # Build docker image and push to docker hub
release-docker: release-docker:
if: ${{ github.actor != 'dependabot[bot]' }}
needs: [release-npm, set-tag] needs: [release-npm, set-tag]
uses: ./.github/workflows/release-docker.yml uses: ./.github/workflows/release-docker.yml
with: with:
@ -80,6 +84,7 @@ jobs:
# echo docker run -d -p 8888:8080 nocodb/nocodb-timely:${{ needs.set-tag.outputs.current_version }}-${{ needs.set-tag.outputs.target_tag }} # echo docker run -d -p 8888:8080 nocodb/nocodb-timely:${{ needs.set-tag.outputs.current_version }}-${{ needs.set-tag.outputs.target_tag }}
leave-comment: leave-comment:
if: ${{ github.actor != 'dependabot[bot]' }}
runs-on: 'ubuntu-latest' runs-on: 'ubuntu-latest'
needs: [release-docker, set-tag] needs: [release-docker, set-tag]
steps: steps:

Loading…
Cancel
Save