Skip to content

Commit

Permalink
Merge pull request #86 from brian-rose/fix-paths
Browse files Browse the repository at this point in the history
Fix paths now that new workflows are merged
  • Loading branch information
brian-rose authored Oct 10, 2022
2 parents bbb1901 + 42ad24b commit 52c90b2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/publish-book.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ on:

jobs:
build:
# uses: ProjectPythiaCookbooks/cookbook-actions/.github/workflows/build-book.yaml@main
uses: brian-rose/cookbook-actions/.github/workflows/build-book.yaml@find-pr
uses: ProjectPythiaCookbooks/cookbook-actions/.github/workflows/build-book.yaml@main
with:
environment_name: cookbook-dev
environment_file: environment.yml
Expand All @@ -19,8 +18,7 @@ jobs:

deploy:
needs: build
# uses: ProjectPythiaCookbooks/cookbook-actions/.github/workflows/deploy-book.yaml@main
uses: brian-rose/cookbook-actions/.github/workflows/deploy-book.yaml@find-pr
uses: ProjectPythiaCookbooks/cookbook-actions/.github/workflows/deploy-book.yaml@main
with:
artifact_name: book-zip

3 changes: 1 addition & 2 deletions .github/workflows/trigger-book-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ on:

jobs:
build:
# uses: ProjectPythiaCookbooks/cookbook-actions/.github/workflows/build-book.yaml@main
uses: brian-rose/cookbook-actions/.github/workflows/build-book.yaml@find-pr
uses: ProjectPythiaCookbooks/cookbook-actions/.github/workflows/build-book.yaml@main
with:
environment_name: cookbook-dev
environment_file: environment.yml
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/trigger-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,19 @@ on:

jobs:
find-pull-request:
# uses: ProjectPythiaCookbooks/cookbook-actions/.github/workflows/find-pull-request.yaml@main
uses: brian-rose/cookbook-actions/.github/workflows/find-pull-request.yaml@find-pr
uses: ProjectPythiaCookbooks/cookbook-actions/.github/workflows/find-pull-request.yaml@main
deploy-preview:
needs: find-pull-request
if: github.event.workflow_run.conclusion == 'success'
# uses: ProjectPythiaCookbooks/cookbook-actions/.github/workflows/deploy-book.yaml@main
uses: brian-rose/cookbook-actions/.github/workflows/deploy-book.yaml@find-pr
uses: ProjectPythiaCookbooks/cookbook-actions/.github/workflows/deploy-book.yaml@main
with:
artifact_name: book-zip-${{ needs.find-pull-request.outputs.number }}
destination_dir: _preview/${{ needs.find-pull-request.outputs.number }} # deploy to subdirectory labeled with PR number
is_preview: 'true'

preview-comment:
needs: find-pull-request
# uses: ProjectPythiaCookbooks/cookbook-actions/.github/workflows/preview-comment.yaml@main
uses: brian-rose/cookbook-actions/.github/workflows/preview-comment.yaml@find-pr
uses: ProjectPythiaCookbooks/cookbook-actions/.github/workflows/preview-comment.yaml@main
with:
pull_request_number: ${{ needs.find-pull-request.outputs.number }}
sha: ${{ needs.find-pull-request.outputs.sha }}

0 comments on commit 52c90b2

Please sign in to comment.