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 982f431 commit 7bf40a5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/Test-CI-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,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 @@ -59,21 +58,17 @@ 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
5 changes: 0 additions & 5 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,17 @@ 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 7bf40a5

Please sign in to comment.