NEW FEATURE: support file permissions
See original GitHub issueBug Description
When I only change the mode of a file (chmod +x ./src/file
), then commit the change and push it.
The ftp script does not seem to recognice the change. and does not alter the destination file mode.
My Action Config
on: push
name: 🚀 Deploy website on push
jobs:
web-deploy:
name: 🎉 Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v2
- name: Install dependencies
uses: php-actions/composer@v6
- name: 📂 Sync files
uses: SamKirkland/FTP-Deploy-Action@4.1.0
with:
server: ${{ secrets.ftp_host }}
protocol: ftps
username: ${{ secrets.ftp_username }}
password: ${{ secrets.ftp_password }}```
My Action Log
⚖️ File content is the same, doing nothing: src/file
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:6 (1 by maintainers)
Top Results From Across the Web
10 Common NTFS (New Technology File System) Permissions
This NTFS function states if a user or group owns every permission a folder can grant. Users can add, modify, move, remove, and...
Read more >Permissions-Policy - HTTP - MDN Web Docs - Mozilla
The HTTP Permissions-Policy header provides a mechanism to allow and deny the use of browser features in a document or within any elements ......
Read more >Change permissions for files, folders, or disks on Mac
Permission settings determine who can view and alter files on the computer. ... Sharing & Permissions section, click the Add button to add...
Read more >App permissions - Microsoft Support
Learn how to locate and manage your app permissions on Windows devices. Some apps or games need specific permissions to work properly.
Read more >Administrator's Guide: File Level Permissions ("Share File ...
Shared Files, or File Level Permissions, is now available on CapLinked from your Files page. This feature allows workspace administrators to ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Currently this action does not support setting file permissions.
Keep in mind the only information git stores about the file is if it can be executed or not. You should have to update that via the
update-index
command (chmod would not save the information to git).I have marked this issue as a enhancement. If other users request this feature it could be added via a new option specifying the file types to make executable, or by using the information set via
update-index
You can use my fork ex: https://github.com/vegan-buddies/vegan-buddies/blob/20e437da95379930c7dd05cecd87f6fe1801fee0/.github/workflows/website.yml#L34 . Unfortunately, I don’t have time to redo the pull request with the better design. Sorry.