Skip to content

Release 6.15.0

Release 6.15.0 #22

name: Prepare plugin for production
on:
pull_request:
types:
- opened
branches:
- 'master'
# - 'dev/add-release-workflow'
jobs:
Prepare-Plugin-For-Production:
if: startsWith(github.head_ref, 'releases/')
name: Prepare for production after testing the plugin
runs-on:
- self-hosted
steps:
- name: Checkout
uses: actions/checkout@v3
- name: PR branch check
uses: mdecoleman/pr-branch-name@1.2.0
id: vars
with:
repo-token: ${{ secrets.CI_GITHUB_TOKEN }}
- name: Determine release tag and release branch
run: |
TAG=$(echo "${{ steps.vars.outputs.branch }}" | grep -Eo '[0-9]+.[0-9]+.[0-9]+')
echo "PLUGIN_VERSION=$TAG" >> $GITHUB_ENV
- name: run script
run: bash .github/bash_scripts/release.sh ${{env.PLUGIN_VERSION}}
- name: Commit and Push
run : |
git add .
git commit -m"Commited from github action - prepaing the repo for production."
git push origin HEAD:${{ steps.vars.outputs.branch }} --force