File tree 1 file changed +37
-0
lines changed 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Update Modules
2
+
3
+ on :
4
+ push :
5
+ branches : [ "main" ]
6
+
7
+ jobs :
8
+ update-modules :
9
+ runs-on : ubuntu-latest
10
+
11
+ steps :
12
+ - name : Checkout Main repository
13
+ uses : actions/checkout@v3
14
+
15
+ - name : Update file
16
+ run : |
17
+ ls -R
18
+ printf "%s\n" "$(ls -d */*)" | sed 's/\.py$//' > ./full.txt
19
+
20
+ - name : Commit changes
21
+ run : |
22
+ git add ./full.txt
23
+ if git diff --cached --quiet; then
24
+ echo "No changes to commit."
25
+ exit 0
26
+ fi
27
+ echo "new_modules_available=true" >> $GITHUB_ENV
28
+
29
+ - name : Create Pull Request
30
+ if : success() && env.new_modules_available == 'true'
31
+ uses : peter-evans/create-pull-request@v5
32
+ with :
33
+ token : ${{ secrets.GITHUB_TOKEN }}
34
+ commit-message : " Update modules/full.txt"
35
+ branch : update-modules-file
36
+ title : " Update for custom_modules"
37
+ body : " This PR updates the full.txt file with the latest changes."
You can’t perform that action at this time.
0 commit comments