Skip to content

Commit

Permalink
improve preview
Browse files Browse the repository at this point in the history
  • Loading branch information
acocac committed Aug 23, 2023
1 parent a0407b6 commit 20aaa77
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,27 @@ on:
workflow_run:
workflows: ["Build and push container image"]
branches: [postprint]
types:
- completed
types: [completed]

# This job installs dependencies, build the jupyter notebook, and pushes it to `render`, a new `branch`
# This job installs dependencies, build the jupyter notebook, and pushes it to `preview`, a new `branch`
jobs:
build:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}

if: github.repository_owner == 'eds-book-gallery'
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
on-success:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'eds-book-gallery' && github.event.workflow_run.conclusion == 'success' }}
defaults:
run:
shell: bash -l {0}
steps:
- name: Check conditions meet
run: echo 'The triggering workflow passed'
- uses: actions/checkout@v2
with:
ref: postprint
# Set notebook name
- name: Get properties from the config file
id: config_file
uses: notiz-dev/github-action-json-property@release
with:
with:
path: '.github/config.json'
prop_path: 'notebook_name'
# Set quay image
Expand Down Expand Up @@ -71,3 +66,9 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: preview
force: true
on-failure:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'eds-book-gallery' && github.event.workflow_run.conclusion == 'failure' }}
steps:
- name: Check conditions meet
run: echo 'The triggering workflow failed'

0 comments on commit 20aaa77

Please sign in to comment.