Skip to content

Commit 796754a

Browse files
author
samirrhashimov
committed
Add workflow to fix file permissions
1 parent 6ac664b commit 796754a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Fix File Permissions
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
fix-permissions:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: Set correct file permissions
14+
run: |
15+
find . -type f -exec chmod 644 {} \;
16+
find . -type d -exec chmod 755 {} \;
17+
- name: Commit permission changes
18+
run: |
19+
git config --global user.name "github-actions"
20+
git config --global user.email "github-actions@github.com"
21+
git add -A
22+
git commit -m "Fix file permissions" || echo "No changes to commit"
23+
git push
24+

0 commit comments

Comments
 (0)