From bab3cf37b48113e4880995033cb9859802cd0abf Mon Sep 17 00:00:00 2001 From: spiralnebulam31 Date: Tue, 30 Jun 2026 13:20:50 +0100 Subject: [PATCH 1/4] Fixed Node 20 deprecation warnings --- actions/deploy-via-rsync/action.yml | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/actions/deploy-via-rsync/action.yml b/actions/deploy-via-rsync/action.yml index ae5d1db..f14b178 100644 --- a/actions/deploy-via-rsync/action.yml +++ b/actions/deploy-via-rsync/action.yml @@ -64,7 +64,7 @@ runs: using: "composite" steps: - name: Check out the Repo - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Install Composer Dependencies if required if: ${{inputs.composer == 'true' }} @@ -86,24 +86,13 @@ runs: shell: bash - name: Check for ignore file - id: check_files - uses: andstor/file-existence-action@v2 - with: - files: ".rsyncignore" - - - name: File exists - if: steps.check_files.outputs.files_exists == 'true' shell: bash - # Only runs if all of the files exists run: | - echo EXCLUDE_FROM=" --exclude-from=.rsyncignore " >> "$GITHUB_ENV" - - - name: File does not exist - if: steps.check_files.outputs.files_exists != 'true' - shell: bash - # Only runs if any of the files does not exist - run: | - echo EXCLUDE_FROM="" >> "$GITHUB_ENV" + if [ -f ".rsyncignore" ]; then + echo EXCLUDE_FROM=" --exclude-from=.rsyncignore " >> "$GITHUB_ENV" + else + echo EXCLUDE_FROM="" >> "$GITHUB_ENV" + fi - name: Rsync to the remote with pubkey if: inputs.sshpass != 'true' From 7687f7a100dd24f47135018b1d4ce76e079fa361 Mon Sep 17 00:00:00 2001 From: spiralnebulam31 Date: Tue, 30 Jun 2026 14:15:28 +0100 Subject: [PATCH 2/4] Updated checkout version --- actions/deploy-via-ftp/action.yml | 2 +- actions/deploy-via-rsync/action.yml | 2 +- actions/verify-branch-is-up-to-date/action.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/actions/deploy-via-ftp/action.yml b/actions/deploy-via-ftp/action.yml index 29a3496..32ef606 100644 --- a/actions/deploy-via-ftp/action.yml +++ b/actions/deploy-via-ftp/action.yml @@ -41,7 +41,7 @@ runs: using: "composite" steps: - name: Check out the Repo - uses: actions/checkout@v4 + uses: actions/checkout@v7 - name: Install Composer Dependencies if required if: ${{inputs.composer == 'true' }} diff --git a/actions/deploy-via-rsync/action.yml b/actions/deploy-via-rsync/action.yml index f14b178..e11c098 100644 --- a/actions/deploy-via-rsync/action.yml +++ b/actions/deploy-via-rsync/action.yml @@ -64,7 +64,7 @@ runs: using: "composite" steps: - name: Check out the Repo - uses: actions/checkout@v5 + uses: actions/checkout@v7 - name: Install Composer Dependencies if required if: ${{inputs.composer == 'true' }} diff --git a/actions/verify-branch-is-up-to-date/action.yml b/actions/verify-branch-is-up-to-date/action.yml index 87c1255..ef374f7 100644 --- a/actions/verify-branch-is-up-to-date/action.yml +++ b/actions/verify-branch-is-up-to-date/action.yml @@ -10,7 +10,7 @@ runs: using: "composite" steps: - name: Git checkout - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: fetch-depth: 0 - name: Check if branch contains main From 151b10ce4e07287482c333a638148e32eacb9106 Mon Sep 17 00:00:00 2001 From: spiralnebulam31 Date: Tue, 30 Jun 2026 14:40:55 +0100 Subject: [PATCH 3/4] Updated comment --- actions/deploy-via-rsync/action.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/actions/deploy-via-rsync/action.yml b/actions/deploy-via-rsync/action.yml index e11c098..de11edd 100644 --- a/actions/deploy-via-rsync/action.yml +++ b/actions/deploy-via-rsync/action.yml @@ -85,6 +85,9 @@ runs: run: cd ${{inputs.working-directory}} && npm install && ${{inputs.npm-run-command}} shell: bash + # Replaces andstor/file-existence-action@v2 which targeted Node.js 20 (deprecated). + # Checks if a .rsyncignore file exists in the repo root and sets the EXCLUDE_FROM + # env variable accordingly — either pointing rsync at the ignore file, or leaving it empty. - name: Check for ignore file shell: bash run: | From 61595104a5acaf993096df3f2e6d007e5f20ff06 Mon Sep 17 00:00:00 2001 From: spiralnebulam31 Date: Tue, 30 Jun 2026 15:17:30 +0100 Subject: [PATCH 4/4] Updated checkout versions --- actions/deploy-via-ftp/action.yml | 2 +- actions/deploy-via-rsync/action.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/actions/deploy-via-ftp/action.yml b/actions/deploy-via-ftp/action.yml index 32ef606..cdf998f 100644 --- a/actions/deploy-via-ftp/action.yml +++ b/actions/deploy-via-ftp/action.yml @@ -52,7 +52,7 @@ runs: - name: Install Node Dependencies if required if: ${{inputs.npm == 'true' }} - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version: ${{ inputs.node_version || matrix.node }} diff --git a/actions/deploy-via-rsync/action.yml b/actions/deploy-via-rsync/action.yml index de11edd..c1cc490 100644 --- a/actions/deploy-via-rsync/action.yml +++ b/actions/deploy-via-rsync/action.yml @@ -76,7 +76,7 @@ runs: - name: Install Node Dependencies if required if: ${{inputs.npm == 'true' }} - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version: ${{ inputs.node_version || matrix.node }}