name: Sync assets with wordpress.org

on:
  push:
    branches:
      - repo
    paths:
      - 'README.txt'
      - '.wordpress-org/**'
jobs:
  run:
    runs-on: ubuntu-latest
    if: "! contains(github.event.head_commit.message, 'chore(release)')"
    name: Push assets to wporg
    steps:
      - uses: actions/checkout@master
      - name: WordPress.org plugin asset/readme update
        uses: selul/action-wordpress-plugin-asset-update@develop
        env:
          SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
          SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
          SLUG: checkout-field-editor-checkoutify