Update Tested Up To version to 6.7.1 (#91) #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build, Tag, and Release | |
on: | |
push: | |
branches: | |
- 'release' | |
permissions: | |
pull-requests: write | |
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@v4 | |
- name: Build, tag, and release | |
uses: pantheon-systems/plugin-release-actions/build-tag-release@v0 | |
with: | |
gh_token: ${{ secrets.GITHUB_TOKEN }} | |
build_node_assets: "true" | |
build_composer_assets: "true" | |
prepare_dev: | |
name: Update Dev environment for the next version | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Prepare Dev | |
uses: pantheon-systems/plugin-release-actions/prepare-dev@v0 |