How to only commit modified, new, or deleted files? #74
Replies: 2 comments 1 reply
-
@JStantonWordPress - this was driving me crazy, and finally got to the bottom of it. Git checkout does not set the file modification times (by design) - which in turn causes rsync to treat every file as new and needing to be deployed. The fix is simple - modify your checkout to use
Adding This has saved up 3-4 minutes per deploy on average in our workflows. |
Beta Was this translation helpful? Give feedback.
-
@JStantonWordPress Not quite -
|
Beta Was this translation helpful? Give feedback.
-
It appears on every deployment it pushes ALL the files in the repository which takes 3-4 minutes. Is there anyway to only push files that has been modified, newly added, or deleted? Essentially the contents of that commit. Any help would be greatly appreciated. Here is my current .yaml file
name: Deploy to WP Engine on: push: branches: - master jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: GitHub Action Deploy to WP Engine uses: wpengine/github-action-wpe-site-deploy@v3 with: # Deploy vars WPE_SSHG_KEY_PRIVATE: ${{ secrets.WPE_SSHG_KEY_PRIVATE }} WPE_ENV: bbp2023 # Deploy Options REMOTE_PATH: "wp-content/" PHP_LINT: FALSE CACHE_CLEAR: TRUE
Beta Was this translation helpful? Give feedback.
All reactions