Skip to content

Commit

Permalink
Try to nest workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
finsberg committed Feb 10, 2024
1 parent 38ebc41 commit 70e7011
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 18 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ on:
branches:
- main

jobs:

reproduce_results:
uses: ./.github/workflows/reproduce_results.yml

build-docs:
needs: [reproduce_results]

jobs:
build:
runs-on: ubuntu-latest
env:
PUBLISH_DIR: ./_build/html
Expand Down
20 changes: 4 additions & 16 deletions .github/workflows/reproduce_results.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
# Simple workflow for deploying static content to GitHub Pages
name: Reproduce results

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
on:
workflow_dispatch:
workflow_call:

pull_request:
branches:
- main

jobs:
run:
Expand All @@ -19,15 +16,6 @@ jobs:
container:
image: ghcr.io/scientificcomputing/fenics-gmsh:2023-11-15



env:
# Directory that will be published on github pages
DATAPATH: ./artifacts/data/data.json
FIGDIR: ./artifacts/figures
RESULTDIR: ./artifacts/results


steps:
- uses: actions/checkout@v4

Expand Down

0 comments on commit 70e7011

Please sign in to comment.