Skip to content

Commit

Permalink
Try
Browse files Browse the repository at this point in the history
  • Loading branch information
AnonymousCodes911 committed Apr 19, 2024
1 parent 9710156 commit 5192719
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 44 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/build_docs.yml

This file was deleted.

10 changes: 3 additions & 7 deletions .github/workflows/build_test_notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,17 @@ jobs:
path: ./stingray
submodules: recursive

- name: Get latest commit of the PR
id: pr_commit
- name: Get latest commit of the PR and Checkout PR version of notebooks
run: |
echo "PR_SHA=$(curl -s 'https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}' | jq -r .head.sha)" >> $GITHUB_ENV
PR_SHA=$(curl -s 'https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}' | jq -r .head.sha)
if [ "$PR_SHA" == "null" ]; then
echo "::error::Failed to get PR SHA"
exit 1
fi
echo "commit=$PR_SHA" >> $GITHUB_ENV
- name: Checkout PR version of notebooks
run: |
cd ./stingray/docs/notebooks # Change to the submodule directory
pwd
git fetch origin ${{ env.commit }}:pr_temp
git fetch origin $PR_SHA:pr_temp
git checkout pr_temp
- name: Verify submodule update
Expand Down

0 comments on commit 5192719

Please sign in to comment.