Skip to content

Use rsync to copy so that we can keep the drupal site where it was, i… #50

Use rsync to copy so that we can keep the drupal site where it was, i…

Use rsync to copy so that we can keep the drupal site where it was, i… #50

Workflow file for this run

name: Pantheon Advanced Page Cache
on:
push:
jobs:
phpcompatibility:
runs-on: ubuntu-latest
name: PHP Compatibility
steps:
- name: Checkout
uses: actions/checkout@v2
- name: PHPCompatibility
uses: pantheon-systems/phpcompatibility-action@v1
with:
test-versions: 7.4-
mirror:
runs-on: ubuntu-latest
name: Checkout & push to remote
needs: [phpcompatibility]
if: ${{ github.repository == 'pantheon-systems/pantheon_advanced_page_cache' }}
env:
BRANCH: ${{ github.ref_name }}
WORKSPACE: ${{ github.workspace }}
DRUPAL_ORG_REMOTE: ${{ secrets.DRUPAL_ORG_REMOTE }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}
if_key_exists: ignore
- name: Pushes to drupal.org repository
run: |
cd $WORKSPACE
git remote add drupalorg $DRUPAL_ORG_REMOTE
git push drupalorg $BRANCH