-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
51 additions
and
5 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,38 @@ | ||
name: Autotag | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
on: | ||
pull_request: | ||
branches: [v2] | ||
paths: | ||
- '**.yml' | ||
- '**.yaml' | ||
|
||
jobs: | ||
autotag: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- id: files | ||
uses: masesgroup/retrieve-changed-files@v2 | ||
- id: alzimpact | ||
name: Verify whether the modified files have an impact on the ALZ checklist | ||
run: | | ||
alz_files=$(python3 ./scripts/cl.py list-recos --input-folder ./v2/recos --checklist-file ./v2/checklists/alz.yaml --only-filenames) | ||
for input_file in ${{ steps.files.outputs.all }}; do | ||
if [[ echo "$alz_files" | grep "$input_file" == "$input_file" ]]; then | ||
echo "Modification to file $input_file detected, which seems to be a reco leveraged by the ALZ checklist" | ||
echo "alz_impact=yes" >> $GITHUB_OUTPUT | ||
else | ||
echo "$input_file has no ALZ impact" | ||
fi | ||
done | ||
- name: Work with the list of modified files - sort, update timestamp, translate | ||
if: ${{ steps.alzimpact.outputs.alz_impact == 'yes' }} | ||
uses: actions-ecosystem/action-add-labels@v1 | ||
id: addalzlabel | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
labels: 'landingzone' |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
name: Lint Code Base | ||
name: Lint v2 recommendations and checklists | ||
on: | ||
# push: | ||
# branches-ignore: [main] | ||
|
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
Binary file modified
BIN
+117 Bytes
(100%)
scripts/modules/__pycache__/cl_analyze_v2.cpython-311.pyc
Binary file not shown.
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