Skip to content

Commit

Permalink
Dependabot benchmark and doc ignores, reorganize what action is run w…
Browse files Browse the repository at this point in the history
…hen (#246)

* Don't run benchmarks on dependabot and doc branches

* Use different way to filter out dependabot

* More updates on what is run where

* allocations on pull request

* docs on push

* change how docs are run - again
  • Loading branch information
mtsch authored Feb 14, 2024
1 parent 444ba43 commit 81d4866
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 34 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@
name: Run tests

on:
push:
branches:
- master
- develop
- 'feature/**'
- 'bugfix/**'
# tags: '*'
pull_request:
branches:
- master
- develop
- feature/github-actions
push

jobs:
test:
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/allocations.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Allocations

on:
push:
branches:
- develop
- 'feature/**'
- 'bugfix/**'
pull_request:
branches-ignore:
- 'doc/**'

jobs:
allocations:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Benchmarks
on:
pull_request:
branches-ignore:
- 'dependabot/**'
- 'doc/**'

jobs:
run:
Expand Down Expand Up @@ -48,13 +48,13 @@ jobs:

# create/update comment
- name: create comment
if: ${{ steps.fc.outputs.comment-id == 0 }}
if: ${{ steps.fc.outputs.comment-id == 0 }} && github.actor != 'dependabot[bot]'
uses: peter-evans/create-or-update-comment@v1
with:
issue-number: ${{ github.event.pull_request.number }}
body: ${{ steps.generate-result-markdown.outputs.body }}
- name: update comment
if: ${{ steps.fc.outputs.comment-id != 0 }}
if: ${{ steps.fc.outputs.comment-id != 0 }} && github.actor != 'dependabot[bot]'
uses: peter-evans/create-or-update-comment@v1
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
Expand Down
16 changes: 2 additions & 14 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,10 @@ name: Documentation
on:
push:
branches:
- master
- develop
- feature/github-actions
- feature/doc-**
- 'doc/**'
branches-ignore:
- 'dependabot/**'
tags: '*'
pull_request:
branches:
- master
- develop
- feature/github-actions
- feature/doc-**
- 'doc/**'
branches-ignore:
- 'dependabot/**'
- '*'

jobs:
build:
Expand All @@ -42,6 +29,7 @@ jobs:
julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
julia --project=docs/ -e 'using Rimu'
- name: Build and deploy
if: github.actor != 'dependabot[bot]'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: julia --project=docs/ docs/make.jl

0 comments on commit 81d4866

Please sign in to comment.