-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'sonic-net:master' into add_disk_path
- Loading branch information
Showing
647 changed files
with
68,131 additions
and
44,001 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Protect certain files to avoid further changes | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
- '202[2-9][0-9][0-9]' | ||
pull_request: | ||
branches: | ||
- 'master' | ||
- '202[2-9][0-9][0-9]' | ||
|
||
jobs: | ||
check-file: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Fetch base branch | ||
run: | | ||
git fetch origin ${GITHUB_BASE_REF} | ||
- name: Check protected files | ||
run: | | ||
echo "Starting file check step" | ||
protected_files=('src/sonic-config-engine/minigraph.py' 'files/build_templates/init_cfg.json.j2') | ||
base_branch=$(git rev-parse origin/${GITHUB_BASE_REF}) | ||
for protected_file in "${protected_files[@]}"; do | ||
echo "Checking ${protected_file}" | ||
if git diff --name-only $base_branch | grep -q "^${protected_file}\$"; then | ||
echo "Error: You are trying to modify ${protected_file}, which is protected." | ||
exit 1 | ||
fi | ||
done | ||
echo "No changes detected in protected files" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
device/arista/x86_64-arista_7060dx5_32/Arista-7060DX5-32/BALANCED
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
device/arista/x86_64-arista_7060dx5_32/Arista-7060DX5-32/buffers.json.j2
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
device/arista/x86_64-arista_7060dx5_32/Arista-7060DX5-32/buffers_defaults_t0.j2
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
device/arista/x86_64-arista_7060dx5_32/Arista-7060DX5-32/buffers_defaults_t1.j2
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
device/arista/x86_64-arista_7060dx5_32/Arista-7060DX5-32/pg_profile_lookup.ini
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
device/arista/x86_64-arista_7060dx5_32/Arista-7060DX5-32/qos.json.j2
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.