Plugin Directory

Changeset 2460267


Ignore:
Timestamp:
01/21/2021 10:28:45 AM (5 years ago)
Author:
eighty20results
Message:

Update to version test_workflow_71a from GitHub

Location:
e20r-members-list
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • e20r-members-list/tags/test_workflow_71a/build_env/entrypoint.sh

    r2460232 r2460267  
    3131fi
    3232echo "ℹ︎ SLUG is ${SLUG}"
     33
     34if [[ -z "${BRANCH}" ]]; then
     35    BRANCH="${GITHUB_REF#refs/heads/}"
     36fi
     37
     38echo "ℹ︎ Branch is ${BRANCH}"
    3339
    3440# Does it even make sense for VERSION to be editable in a workflow definition?
     
    156162svn status
    157163
    158 echo "➤ Committing files to Wordpress.org SVN repository..."
    159 svn commit -m "Update to version ${VERSION} from GitHub" --no-auth-cache --non-interactive  --username "${SVN_USERNAME}" --password "${SVN_PASSWORD}"
    160 
    161 echo "✓ Plugin deployed!"
     164if [[ -n "${BRANCH}" && "master" == "${BRANCH}" ]]; then
     165    echo "➤ In master branch so committing files to Wordpress.org SVN repository..."
     166    echo "svn commit -m \"Update to version ${VERSION} from GitHub\" --no-auth-cache --non-interactive  --username \"${SVN_USERNAME}\" --password \"${SVN_PASSWORD}\""
     167fi
     168echo "✓ Plugin deployed! - Test complete"
  • e20r-members-list/trunk/build_env/entrypoint.sh

    r2460232 r2460267  
    3131fi
    3232echo "ℹ︎ SLUG is ${SLUG}"
     33
     34if [[ -z "${BRANCH}" ]]; then
     35    BRANCH="${GITHUB_REF#refs/heads/}"
     36fi
     37
     38echo "ℹ︎ Branch is ${BRANCH}"
    3339
    3440# Does it even make sense for VERSION to be editable in a workflow definition?
     
    156162svn status
    157163
    158 echo "➤ Committing files to Wordpress.org SVN repository..."
    159 svn commit -m "Update to version ${VERSION} from GitHub" --no-auth-cache --non-interactive  --username "${SVN_USERNAME}" --password "${SVN_PASSWORD}"
    160 
    161 echo "✓ Plugin deployed!"
     164if [[ -n "${BRANCH}" && "master" == "${BRANCH}" ]]; then
     165    echo "➤ In master branch so committing files to Wordpress.org SVN repository..."
     166    echo "svn commit -m \"Update to version ${VERSION} from GitHub\" --no-auth-cache --non-interactive  --username \"${SVN_USERNAME}\" --password \"${SVN_PASSWORD}\""
     167fi
     168echo "✓ Plugin deployed! - Test complete"
Note: See TracChangeset for help on using the changeset viewer.