Skip to content

Commit

Permalink
remove unneeded env-vars from the inline script in the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
classiqdor committed Dec 5, 2024
1 parent 7e8b090 commit 9fd4198
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/test-CI-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ jobs:
if [[ "${{ github.event_name }}" == "pull_request_target" ]]; then
echo "Handling pull_request_target event"
echo "SHOULD_TEST_ALL_FILES=false" >> $GITHUB_ENV
target_branch="${{ github.event.pull_request.base.ref }}"
if [ "${{ github.event.pull_request.head.repo.full_name }}" != "${{ github.repository }}" ]; then
echo "PR from a fork detected. Checking out the fork's branch."
Expand All @@ -58,21 +57,16 @@ jobs:
elif [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
echo "Handling workflow_dispatch event: No checkout needed"
target_branch="${{ github.ref_name }}"
echo "SHOULD_TEST_ALL_FILES=true" >> $GITHUB_ENV
echo "list_of_ipynb_changed=**/*.ipynb" >> $GITHUB_ENV
elif [[ "${{ github.event_name }}" == "push" ]]; then
echo "Handling push event: No checkout needed"
target_branch="${{ github.ref_name }}"
else
echo "Unsupported event type: ${github.event_name}. Exiting."
exit 1
fi
echo "target_branch=$target_branch" >> $GITHUB_OUTPUT
# Debugging: final git status
echo "==== Git status after checkout ===="
git status
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/test-CI-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ jobs:
if [[ "${{ github.event_name }}" == "pull_request_target" ]]; then
echo "Handling pull_request_target event"
echo "SHOULD_TEST_ALL_FILES=false" >> $GITHUB_ENV
target_branch="${{ github.event.pull_request.base.ref }}"
if [ "${{ github.event.pull_request.head.repo.full_name }}" != "${{ github.repository }}" ]; then
echo "PR from a fork detected. Checking out the fork's branch."
Expand All @@ -61,21 +60,16 @@ jobs:
elif [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
echo "Handling workflow_dispatch event: No checkout needed"
target_branch="${{ github.ref_name }}"
echo "SHOULD_TEST_ALL_FILES=true" >> $GITHUB_ENV
echo "list_of_ipynb_changed=**/*.ipynb" >> $GITHUB_ENV
elif [[ "${{ github.event_name }}" == "push" ]]; then
echo "Handling push event: No checkout needed"
target_branch="${{ github.ref_name }}"
else
echo "Unsupported event type: ${github.event_name}. Exiting."
exit 1
fi
echo "target_branch=$target_branch" >> $GITHUB_OUTPUT
# Debugging: final git status
echo "==== Git status after checkout ===="
git status
Expand Down

0 comments on commit 9fd4198

Please sign in to comment.