Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 33 additions & 2 deletions .github/workflows/build-tag-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
2 changes: 1 addition & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -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.7.2
Requires PHP: 5.6
Stable tag: 0.3.9
License: GPLv2 or later
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.7.2
Requires PHP: 5.6
Stable tag: 0.3.9
License: GPLv2 or later
Expand Down
Loading