Skip to content

Commit 2000159

Browse files
Create android.yml
1 parent 2de4992 commit 2000159

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/android.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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."

0 commit comments

Comments
 (0)