Skip to content

Commit

Permalink
chore: prevent main CI run from bot
Browse files Browse the repository at this point in the history
  • Loading branch information
luwes committed Dec 19, 2024
1 parent 5268324 commit e009982
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:
jobs:
build:
# Don't run if the CI is triggered by Release Please
if: ${{ github.event.pull_request.user.login != 'github-actions[bot]' }}
if: ${{ github.event.commits[0].author.name != 'github-actions[bot]' }}

runs-on: ubuntu-latest
timeout-minutes: 15
Expand Down Expand Up @@ -38,11 +38,12 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

lint:
# Don't run if the CI is triggered by Release Please
if: ${{ github.event.commits[0].author.name != 'github-actions[bot]' }}

runs-on: ubuntu-latest

steps:
- name: View PR author
run: echo "This PR is opened by ${{ github.event.pull_request.user.login }}"
- uses: actions/checkout@v4
- name: read node version from the .nvmrc file
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc)
Expand All @@ -57,7 +58,7 @@ jobs:

test:
# Don't run if the CI is triggered by Release Please
if: ${{ github.event.pull_request.user.login != 'github-actions[bot]' }}
if: ${{ github.event.commits[0].author.name != 'github-actions[bot]' }}

runs-on: ubuntu-latest

Expand Down

0 comments on commit e009982

Please sign in to comment.