From d76d6e944517be659aab63f78e9260d622395db6 Mon Sep 17 00:00:00 2001 From: Chris Reynolds Date: Tue, 26 Mar 2024 12:38:15 -0600 Subject: [PATCH 1/3] Use new workflows (#76) * bump actions/checkout * add a conditional step to test maybe_asset_only update logic * also look for readme.md * bump version in readmes --- .github/workflows/build-tag-release.yml | 35 +++++++++++++++++++++++-- README.MD | 2 +- readme.txt | 2 +- 3 files changed, 35 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-tag-release.yml b/.github/workflows/build-tag-release.yml index 651389f..3a157c7 100644 --- a/.github/workflows/build-tag-release.yml +++ b/.github/workflows/build-tag-release.yml @@ -9,12 +9,43 @@ permissions: contents: write jobs: + check-status: + runs-on: ubuntu-latest + outputs: + maybe-asset-only: ${{ steps.set-outputs.outputs.maybe-asset-only }} + steps: + - uses: actions/checkout@v4 + - id: get-changed-files + uses: jitterbit/get-changed-files@v1 + - id: set-outputs + run: | + echo "Changed files: ${{ steps.get-changed-files.outputs.all }}" + shopt -s nocasematch + maybe_asset_only="true" + for file in ${{ steps.get-changed-files.outputs.all }}; do + if [[ $file =~ ^\.wordpress\.org/ ]] && [[ $file != "readme.txt" ]] && [[ $file != "readme.md" ]]; then + maybe_asset_only="false" + break + fi + done + echo "::set-output name=maybe-asset-only::$maybe_asset_only" + asset-only: + needs: check-status + if: ${{ needs.check-status.outputs.maybe-asset-only == 'true' }} + runs-on: ubuntu-latest + steps: + - name: Asset-only identified + run: | + echo "Asset only identified" + echo "We're not doing anything here, but now is when you would run 10up/action-wordpress-plugin-asset-update" tag: + needs: check-status + if: ${{ needs.check-status.outputs.maybe-asset-only == 'false' }} name: Tag with Assets and Draft Release runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Build, tag, and release uses: pantheon-systems/plugin-release-actions/build-tag-release@v0 with: @@ -26,6 +57,6 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Prepare Dev uses: pantheon-systems/plugin-release-actions/prepare-dev@v0 diff --git a/README.MD b/README.MD index bccf596..2186046 100644 --- a/README.MD +++ b/README.MD @@ -3,7 +3,7 @@ Contributors: [getpantheon](https://profiles.wordpress.org/getpantheon) Donate link: https://example.com/ Tags: comments, spam Requires at least: 4.5 -Tested up to: 6.2.1 +Tested up to: 6.4.3 Requires PHP: 5.6 Stable tag: 0.3.9 License: GPLv2 or later diff --git a/readme.txt b/readme.txt index 0d83580..cfaff07 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: [getpantheon](https://profiles.wordpress.org/getpantheon) Donate link: https://example.com/ Tags: comments, spam Requires at least: 4.5 -Tested up to: 6.2.1 +Tested up to: 6.4.3 Requires PHP: 5.6 Stable tag: 0.3.9 License: GPLv2 or later From c05552b2d446f210d05d08fda003a45f199ee6f4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 26 Nov 2024 10:46:21 -0700 Subject: [PATCH 2/3] Update Tested Up To version to 6.7.1 (#91) Co-authored-by: github-actions --- README.MD | 2 +- readme.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.MD b/README.MD index 2186046..4819fe8 100644 --- a/README.MD +++ b/README.MD @@ -3,7 +3,7 @@ Contributors: [getpantheon](https://profiles.wordpress.org/getpantheon) Donate link: https://example.com/ Tags: comments, spam Requires at least: 4.5 -Tested up to: 6.4.3 +Tested up to: 6.7.1 Requires PHP: 5.6 Stable tag: 0.3.9 License: GPLv2 or later diff --git a/readme.txt b/readme.txt index cfaff07..aae7972 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: [getpantheon](https://profiles.wordpress.org/getpantheon) Donate link: https://example.com/ Tags: comments, spam Requires at least: 4.5 -Tested up to: 6.4.3 +Tested up to: 6.7.1 Requires PHP: 5.6 Stable tag: 0.3.9 License: GPLv2 or later From 5d666117744a8b90b7849cc81727308e3140a6fa Mon Sep 17 00:00:00 2001 From: github-actions Date: Sun, 16 Feb 2025 00:03:52 +0000 Subject: [PATCH 3/3] Update Tested Up To version to 6.7.2 --- README.MD | 2 +- readme.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.MD b/README.MD index 4819fe8..7519e42 100644 --- a/README.MD +++ b/README.MD @@ -3,7 +3,7 @@ Contributors: [getpantheon](https://profiles.wordpress.org/getpantheon) Donate link: https://example.com/ Tags: comments, spam Requires at least: 4.5 -Tested up to: 6.7.1 +Tested up to: 6.7.2 Requires PHP: 5.6 Stable tag: 0.3.9 License: GPLv2 or later diff --git a/readme.txt b/readme.txt index aae7972..25dbb5b 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: [getpantheon](https://profiles.wordpress.org/getpantheon) Donate link: https://example.com/ Tags: comments, spam Requires at least: 4.5 -Tested up to: 6.7.1 +Tested up to: 6.7.2 Requires PHP: 5.6 Stable tag: 0.3.9 License: GPLv2 or later