Skip to content

Commit

Permalink
use the resuable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zain-sohail committed Oct 11, 2023
1 parent c416edd commit 05dffa8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cache_setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: cache

on:
# Triggers the workflow on push but only for the main branch
workflow_call
workflow_call:

jobs:
cache:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ on:
branches: [ workflow_trials ]

jobs:
call-cache:
uses: ./.github/workflows/cache_setup.yml
documentation:
runs-on: ubuntu-latest

steps:
- name: cache
uses: ./.github/workflows/cache_setup.yml
- name: Export requirements.txt
run: poetry export --without-hashes --format=requirements.txt -o docs/requirements.txt -E docs -E notebook
# - name: Commit changes
Expand Down

0 comments on commit 05dffa8

Please sign in to comment.