Skip to content

Commit

Permalink
do PR suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
NiniOak committed Sep 18, 2023
1 parent 6226420 commit b068727
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/filter_changed_files_go_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

set -euo pipefail

GITHUB_BRANCH=""
BRANCH=""

# Get the list of changed files
files_to_check=$(git diff --name-only origin/$GITHUB_BRANCH)
files_to_check=$(git diff --name-only origin/$BRANCH)

# Define the directories to check
skipped_directories=("docs/" "ui/" "website/" "grafana/" ".github/")
Expand Down
12 changes: 1 addition & 11 deletions .github/workflows/test-integrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,10 @@ jobs:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
fetch-depth: 0
- name: Set Variable
id: set-variable
run: |
if [[ "${{ github.event.pull_request.merged }}" == "true" ]]; then
echo "GITHUB_BRANCH=${{ github.ref_name }}" >> "${GITHUB_ENV}"
echo "branch: $GITHUB_BRANCH"
else
echo "GITHUB_BRANCH=${{ github.head_ref }}" >> "${GITHUB_ENV}"
echo "branch: $GITHUB_BRANCH"
fi
- name: Get changed files
id: read-files
env:
GITHUB_BRANCH: "$GITHUB_BRANCH"
BRANCH: ${{ github.head_ref || github.ref_name }}
run: ./.github/scripts/filter_changed_files_go_test.sh

setup:
Expand Down

0 comments on commit b068727

Please sign in to comment.