question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NEW FEATURE: support file permissions

See original GitHub issue

Bug 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:open
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
SamKirklandcommented, Jul 26, 2021

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

0reactions
timthelioncommented, Jun 14, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found